Wednesday, March 5, 2008

Where can I find php.ini configuration file on the Plesk server?

Usually the location of the file is /etc/php.ini. And PHP modules *.ini files are placed in /etc/php.d. Also, you can find which configuration files are used by PHP using a script with phpinfo() function:

phpinfo();
?>

Simply create a phpinfo.php file with the code above, and access that page in your web browser and look for "Configuration File (php.ini) Path", "Scan this dir for additional .ini files" and "additional .ini files parsed" sections at the beginning of the page.

No comments: