• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Per-domain php.ini settings

MoreThanSixChars

New Pleskian
Hello world,

in order to apply domain specific php.ini settings in a Plesk 11.5 setup, I tried to follow
http://download1.parallels.com/Ples...nistration-guide/index.htm?fileName=69310.htm

If I understand correctly, this basically says:
- Make sure that PHP runs in CGI or FastCGI mode
- Put your settings into /var/www/vhosts/<domain_name>/conf/php.ini
- These settings will be merged with those made via the Plesk GUI (in case of conflicts, the "conf" setting wins)
- The resulting merged php.ini will be written to /var/www/vhosts/<domain_name>/etc/php.ini
- The merge will not occur automatically, but must be triggered in the Plesk GUI

However, I can't get this to work. My observations are:
- A newly created webspace is located at /var/www/vhosts/<domain_name>, but has no "conf" or "etc" subdirectories by default.
- PHP is set to run as FastCGI by default already.
- If I create a "conf" subdirectory and place a php.ini file in it, this file will be ignored.
- Plesk does NOT create an "etc" subdirectory with a merged php.ini no matter how often I change PHP settings in the GUI (although the GUI settings have been confirmed and are remembered by Plesk).

What am I doing wrong?
 
Well in Plesk 11.5 the /etc map is located in the /var/www/vhosts/system/<websitename> directorie. But beside of that you cannot make changes to that file because changes will be undone on site edits.
 
You should also be able to edit php settings through your control panel -> (php settings)
 
in Plesk 11.5 the /etc map is located in the /var/www/vhosts/system/<websitename> directorie.
I have checked and - yes, that's it! Once you add the "/system" part, both "conf/php.ini" and "etc/php.ini" in /var/www/vhosts/system/<domain> work as expected. Thanks for the hint!

@Parallels: The paths in the admin guide are incorrect for Plesk 11.5; please update the article to include the "/system" subfolder! URL: http://download1.parallels.com/Ples...nistration-guide/index.htm?fileName=69310.htm
 
Last edited:
Back
Top