• 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/

Edit php.ini server wide and apply for all vhosts?

Azurel

Silver Pleskian
Hello.

I have installed multiple php versions. Now I have edit the php.ini (master) of each php version. Location Example of edit "php.ini":

/usr/local/php-5.5.5/etc/php.ini
/usr/local/php-5.5.6/etc/php.ini

It is possible to apply this little changes to all vhosts? I have tried "/usr/local/psa/admin/sbin/httpdmng --reconfigure-all", but that not working. Can anybody help me here?
 
Thank you, but thats not the answer of my question.

I have edit the server-wide php.ini. I have for ALL domains already domain-php.ini. The domain-php.ini have a higher priority. My problem is how I can apply my changes in server-wide php.ini to domain-php.ini. Example change "expose_php" to "Off" in server-wide php.ini, but in domain-php.ini is this value "On". I have now in each domain set it in gui per hand in textbox.

The domain-php.ini is strange! Why is "explose_php" one of the entries? I have not set it, but plesk means it must as default in domain-php.ini? This is a security risk.
 
# /usr/local/psa/bin/php_settings --help

Usage: php_settings command [options]
Available commands:
--update-all or -u Update per-domain PHP settings of all
domains in accordance with the
server-wide php.ini file.
 
Back
Top