• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • 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.

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