Where can I find php.ini configuration file on the Plesk server.
APPLIES TO:
- Plesk for Linux/Unix
RESOLUTION
Usually php.ini location 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:
<?php
phpinfo();
?>
Open a page which contains this PHP code with a browser and see “Configuration File (php.ini) Path”, “Scan this dir for additional .ini files” and “additional .ini files parsed” sections at the beginning of the page.
Note: for FreeBSD php.ini locattion is /usr/local/psa/apache/conf/php.ini