Where can I find php.ini?

后端 未结 14 2445
無奈伤痛
無奈伤痛 2020-11-22 11:58

A few years ago I installed Apache 2.2x and PHP 5.3.1 on a Linux server I maintain. I used .tar.gz\'s and built them as instructed (instead of rpms and what-have-you). And

14条回答
  •  自闭症患者
    2020-11-22 12:21

    For SAPI: php-fpm

    There is no need to create a php.info file (it is not a good policy to leave it for the world to read anyway). On the command line:

    php-fpm -i | more
    

    Somewhere in its output, it will show this line:

    Configuration File (php.ini) Path => /etc
    

    Here is a more complete explanation: https://www.cloudinsidr.com/content/how-to-figure-out-your-php-configuration-parameters-without-info-php/

提交回复
热议问题