Installing the lnmp environment in Linux, everything else has been installed, but when starting php-fpm again, you need to do some PHP configuration, and I read some tutorials online,
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
But the PHP I installed in /usr/local/php/etc/ does not have the two files above (php-fpm.conf.default, php-fpm.d/www.conf.default) p>
[Is it because I did not add --enable-ftp in the configured parameters when installing PHP? If so, what should I do? I have already installed it. Do I need to install it again?]
習慣沉默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.