在linux安装lnmp环境,其他的都安装好了,但是在 再启动 php-fpm时,需要想做一些PHP的配置,在网上看了一下教程,
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
cp /usr/local/php/etc/php-fpm.d/www.conf.default /usr/local/php/etc/php-fpm.d/www.conf
但是我安装的PHP 在 /usr/local/php/etc/ 根本就没有上面的那两个文件 (php-fpm.conf.default 、php-fpm.d/www.conf.default)
【是不是我在安装PHP时,配置的参数中 没有加 --enable-ftp 的原因呢?要是的话那怎么办 我已经安装好了,需要重新在安装一遍吗,】
習慣沉默2017-05-16 13:07:48
No. some. Only MySQL now does not have the previous configuration file template. Pay attention to the path of the following files:
cp php.ini-production /usr/local/php.ini (this path is determined by --with-config-file-path=/usr/local/ during compilation)
cp /usr/local /php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
cp /usr/local/php/etc/php-fpm.d/www.conf.default /usr /local/php/etc/php-fpm.d/www.conf
--enable-ftp, as the name suggests, should be related to ftp (guessing it is to allow php to support ftp-related operations and functions)
Check if you have added --enable-fpm. This parameter has been used since 5.3.