• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • 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.

10.3 - How to Apply Custom PHP Settings IN CGI/FastCGI Mode to 'EXISTING DOMAINS'?

andyb-uk

New Pleskian
Hi

This relates to my last post however this is more of a specific question...

Last post: http://forum.parallels.com/showthread.php?t=113236

I realise that if I edit/create a php.ini file in

/var/www/vhosts/.skel/0/conf/php.ini

I can disable open_basedir for all new domains - and 'IMPORTANTLY' when I change PHP settings in Plesk it doesn't overwrite the php settings...

How do I apply the setting for all the old domains too ?
- Is there a way to ensure that php.ini settings for old domains (i,e before creating the
/var/www/vhosts/.skel/0/conf/php.ini file) are not destroyed by Plesk when updating hosting settings? (specifically the open_basedir setting)

Regards
 
maybe this helps you:

i don't know why /etc/php.ini doesnt affect any vhosts, but what affects any vhost is /etc/php.d/*.ini.
So I just created /etc/php.d/custom.ini and added some settings, like upload-size, default timezone, ...

after apache restart it should work.

manuel
 
Hi.

Yes that seems to have worked.

Thanks a lot for the hint.

(why the hell did Plesk make this change - Plesk on Linux is increasingly like being on windows...)
 
You can put you custom directives into .../conf/php.ini of each domain. It won't be overwritten by Plesk ever.
Chckout this thread for more information on how it works
 
@Sergey: This solution does not work.

Plesk 10.3 ALWAYS overrides register_globals for me, i tried setting it for Master in php.ini, in the Domain itself via php.ini and vhost.conf, it all doesn't matter. Looks like a bad bug in 10.3.

For test I just installed Drupal as an App on Windows Server 2k8 with Plesk, and searched all domain and plesk folders for entries in files with "register_global", and really NOWHERE it is set On.

But Plesk keeps the value On for all Domains, anyway, as I can see at phpinfo(). So what is wrong there, internal?
 
Back
Top