Where can I find php.ini?

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

    In command window type

    php --ini
    

    It will show you the path something like

    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    

    If the above command does not work then use this

    echo phpinfo();
    

提交回复
热议问题