• 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

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