• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

How to set a PHP.ini setting globally for all domains?

Kroptokin

Regular Pleskian
Hi

I can see how to do this per domain (PHP settings under the domain)

Where do I add an additional directive which will effect all domains?

Thanks

--Justin Wyllie
 
Just add it in server wide php.ini. If you have domain with CGI/FastCGI mode of PHP some of values will be taken from /var/www/vhosts/DOMAINNAME/conf/php.ini file despite of settings defined in Plesk interface. Thus priority of receiving settings for custom php.ini is following:

server-wide php.ini < PHP setting defined for the domain in the Plesk GUI < domain's conf/php.ini
 
Back
Top