Where can I find php.ini?

后端 未结 14 2307
無奈伤痛
無奈伤痛 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:33

    Try one of this solution

    1. In your terminal type find / -name "php.ini"

    2. In your terminal type php -i | grep php.ini . It should show the file path as Configuration File (php.ini) Path => /etc

    3. If you can access one your php files , open it in a editor (notepad) and insert below code after in a new line phpinfo(); This will tell you the php.ini location
    4. You can also talk to php in interactive mode. Just type php -a in the terminal and type phpinfo(); after php initiated.

提交回复
热议问题