• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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