• 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

Multiple PHP Versions and the correct php.ini

Torsten S.

New Pleskian
Hi,

I've installed and registered different PHP Versions on the server. The documentation works like charm. The Problem is, when I add a new serviceplan oder update an existing one, the wrong php.ini is used as default.

My registered Versions:
id: display name: full version: version: type: cgi-bin: php.ini: custom:
cgi 5.3.3 5.3.3 5.3 cgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini false
cgi54 5.4.18 5.4.18 5.4 cgi /usr/local/php54/bin/php-cgi /usr/local/lib/php54.ini true
cgi55 5.5.1 5.5.1 5.5 cgi /usr/local/php55/bin/php-cgi /usr/local/lib/php55.ini true
fastcgi 5.3.3 5.3.3 5.3 fastcgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini false
fastcgi54 5.4.18 5.4.18 5.4 fastcgi /usr/local/php54/bin/php-cgi /usr/local/lib/php54.ini true
fastcgi55 5.5.1 5.5.1 5.5 fastcgi /usr/local/php55/bin/php-cgi /usr/local/lib/php55.ini true
module 5.3.3 5.3.3 5.3 module /usr/bin/php5-cgi /etc/php5/cgi/php.ini false

So when I change the PHP Version to 5.4 or 5.5 the Panel use the /etc/php5/cgi/php.ini, which conflicts with some settings of the newer PHP versions.
I think the Panel should use the corresponding ini-file from the PHP Version I have selected.
 
Back
Top