Home  >  Q&A  >  body text

在linux上编译安装PHP时,为什么没有php-fpm.conf.default这个文件

在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 的原因呢?要是的话那怎么办 我已经安装好了,需要重新在安装一遍吗,】

phpcn_u1582phpcn_u15822736 days ago1830

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