Why is there no php-fpm.conf.default file when compiling and installing PHP on Linux?
phpcn_u1582
phpcn_u1582 2017-05-16 13:05:48
0
2
1874

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)

[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?]

phpcn_u1582
phpcn_u1582

reply all(2)
習慣沉默

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.

伊谢尔伦

Yours should be php7. Copy www.conf.default

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template