• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

PHP.ini files for Domains are not used

karadayi

Basic Pleskian
After an Upgrade to Plesk 12 the php.ini Files directory for the Domains has been changed.

At Plesk 11 it was
/var/www/vhost/domain.com/etc/php.ini

at Plesk 12 is now
/var/www/vhost/system/domain.com/etc/php.ini

Thats not the main Problem. My Problem is that those php.ini file is not used by the domain.
A call with <?php phpinfo ?> shows me that only this php.ini file is used for all domains:

Build Date Apr 17 2015 15:14:51
Server API FPM/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/fpm
Loaded Configuration File /etc/php5/fpm/php.ini
Scan this dir for additional .ini files /etc/php5/fpm/conf.d


How can I set that each Domain has it own php.ini file again?

Changes made on /etc/php5/fpm/php.ini does not effect the Domain after apache is restarted.

I have also installed NGINX and using it to process PHP Files.
 
I found out that if you use Nginx with Apache and you do changes at at php.ini Files than you need to run this command service php5-fpm restart
 
Back
Top