• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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