小编Nee*_*koy的帖子

PHP-FPM 无法写入 Nginx www 文件夹

Nginx 当前设置为以用户“nginx”的身份运行:

[root@localhost whmcs]# grep user /etc/nginx/nginx.conf
user nginx;
Run Code Online (Sandbox Code Playgroud)

PHP-FPM 也设置为以“nginx”用户身份运行:

[root@localhost whmcs]# grep '^user\|^group' /etc/php-fpm.d/www.conf
user = nginx
group = nginx
Run Code Online (Sandbox Code Playgroud)

他们肯定是作为“nginx”用户运行的:

[root@localhost whmcs]# ps aux | grep nginx | grep -v grep
nginx     55067  0.0  0.2 355128  9568 ?        S    15:54   0:00 php-fpm: pool www
nginx     55068  0.0  0.3 359488 13976 ?        S    15:54   0:00 php-fpm: pool www
nginx     55069  0.0  0.2 355128  9596 ?        S    15:54   0:00 php-fpm: pool www
nginx     55070  0.0  0.3 359508 13952 ? …
Run Code Online (Sandbox Code Playgroud)

nginx centos php-fpm

3
推荐指数
1
解决办法
2508
查看次数

用 MySQL 错误编译 PHP7

我正在使用用于原始 PHP 版本的配置选项在 CentOS 6.7 上为 PHP7 设置 alt 安装:

./configure  --disable-fileinfo --disable-opcache --disable-posix --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-gd-native-ttf --enable-libxml --enable-mbstring --enable-pdo=shared --enable-soap --enable-sockets --enable-zip --prefix=/usr/local/php7 --with-bz2 --with-curl=/opt/curlssl/ --with-freetype-dir=/usr --with-gd --with-gettext --with-imap=/opt/php_with_imap_client/ --with-imap-ssl=/usr --with-jpeg-dir=/usr --with-kerberos --with-libdir=lib64 --with-libxml-dir=/opt/xml2 --with-libxml-dir=/opt/xml2/ --with-mcrypt=/opt/libmcrypt/ --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=/usr/bin/mysql_config --with-openssl=/usr --with-openssl-dir=/usr --with-pcre-regex=/opt/pcre --with-pdo-mysql=shared --with-pdo-sqlite=shared --with-pic --with-png-dir=/usr --with-tidy=/opt/tidy/ --with-xpm-dir=/usr --with-zlib --with-zlib-dir=/usr
Run Code Online (Sandbox Code Playgroud)

虽然它抛出以下错误:

configure: WARNING: unrecognized options: --with-mysql
Run Code Online (Sandbox Code Playgroud)

有没有人知道 PHP7 的正确选项是什么,我似乎无法在 Google 上找到它?谢谢 :)

mysql php7

2
推荐指数
1
解决办法
6678
查看次数

标签 统计

centos ×1

mysql ×1

nginx ×1

php-fpm ×1

php7 ×1