How to check where Apache is looking for a php.ini file?

后端 未结 5 1225
清酒与你
清酒与你 2020-12-05 22:26

I have a feeling that Apache is using a different php.ini file that the one I am editing. I make a change in my php.ini file, restart Apache, and the change doesn\'t take af

5条回答
  •  我在风中等你
    2020-12-05 23:26

    Question for you, what platform are you running on unix or windows? If it is unix based, check if your php.ini is residing in the same directory as /etc/httpd. Again, installation of apache can vary so check...or issue the command "find / -name php.ini -print" (without quotes) to see which one is it you are using

    Ok. Since you said you have found the correct php.ini, sounds like something is missing when you edited the php.ini and reloaded apache. Look in the log directory /var/log/httpd for error_log and check to see if there was errors...that would be a start!

提交回复
热议问题