• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Php.ini for vhosts

VinnyT

Regular Pleskian
I have noticed that each of my vhosts contains an etc/php.ini file which is a replica of my main php.ini. Any changes that I make changes to the vhost php.ini files will be overwritten if I reconfigure the domains (httpdmng).

1) Why is the entire php.ini file copied to each vhost? Isn't there a way to just use the vhost php.ini file as a way to introduce custom settings?
2) How can I stop the custom php.ini file from being overwritten?


Thanks!
 
Hello. :)

You can customise a specific domain's PHP settings in Plesk. Click on the domain, then the PHP Settings Tab then at the bottom it says:

Additional directives

If you cannot find particular PHP parameters, add them to the field below. The directives will be included in the final PHP configuration. Use the same syntax as you use for php.ini. For example, if you want to automatically load the mSQL extension, add the line: extension=msql.so.


That's where you can safely put your php.ini directives.

Warmest Regards,

Brian
 
Back
Top