• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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