search

Home  >  Q&A  >  body text

Why is there no php-fpm.conf.default file when compiling and installing PHP on Linux?

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_u1582phpcn_u15822793 days ago1870

reply all(2)I'll reply

  • 習慣沉默

    習慣沉默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.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 13:07:48

    Yours should be php7. Copy www.conf.default

    reply
    0
  • Cancelreply