• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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