• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

In 10.3, PHP configuration being overridden

B

bcorcoran

Guest
Plesk seems to have added a new set of lines to generated httpd.include files. It looks like this:

Code:
SetEnv PP_CUSTOM_PHP_INI /var/www/vhosts/domain.tld/etc/php.ini

<IfModule mod_fcgid.c>
        FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/domain.tld/etc/php.ini
</IfModule>

This wasn't there before I upgraded to 10.3. It's causing problems because it's not reading my /etc/php.ini unless I delete the new php.ini file in that etc subdirectory.

Is there a way I can turn this off without having to manually delete it every time I make an update via Plesk? It's really irritating. I don't want the custom ini file to be read INSTEAD of the default /etc/php.ini.
 
.../etc/php.ini isn't custom and formed by Plesk software to properly configure safe_mode and open_basedir per vhost according to CP settings. Default /etc/php.ini will be read by PHP anyway, but some vhost specific settings will be taken for .../etc/php.ini.
 
.../etc/php.ini isn't custom and formed by Plesk software to properly configure safe_mode and open_basedir per vhost according to CP settings. Default /etc/php.ini will be read by PHP anyway, but some vhost specific settings will be taken for .../etc/php.ini.

Ok, well, before 10.3, it was reading /etc/php.ini for the default config... now it isn't, unless I delete the php.ini in the etc folder. Under phpinfo, it lists the .../etc/php.ini file as the default config. I can confirm it isn't using /etc/php.ini because it is ignoring that I have date.timezone set, which is causing an error on sites that use the date() function. This wasn't happening before because the /etc/php.ini was the default config being loaded.
 
missing PP_CUSTOM_PHP_INI

Hi,

i've upgraded one of my plesk to 10.3.1 but the
SetEnv PP_CUSTOM_PHP_INI /var/www/vhosts/domain.de/etc/php.ini
line is missing in all httpd.include files :(

On another server with plesk 10.3.1 and also Centos 5.6 these lines are in all
httpd.include files for every domain, which is like expected.

so the problem is, that the server uses now the default php.ini in /etc. is there
any setting in plesk to tell him he should use the SetEnv line?

thanks for any help

fg
pat
 
i've upgraded one of my plesk to 10.3.1 but the
SetEnv PP_CUSTOM_PHP_INI /var/www/vhosts/domain.de/etc/php.ini
line is missing in all httpd.include files

Please check that your domain(s) are running in CGI/FastCGI mode (where php.ini is applicable for).

Regards
 
hi

of course i checked this before i started my post here.

it is running fcgi mode, and it was also running in fcgi mode before the upgrade to 10.3.1

fg
pat
 
Sorry, unfortunately I cannot help with such problem remotely. You will need to ask Support assistance.
 
Back
Top