" just as normal php.ini file. That would be your template of php settings for CGI/FastCGI mode
2) when new webspace/subscription is created in Plesk, it will take /var/www/vhosts/.skel/0/conf/php.ini and put it into .../domain.tld/conf/php.ini. In this file you can safely tune settings of the specific vhost - Plesk won't overwrite them
3) the instructions you put in .../domain.tld/conf/php.ini will be included in .../domain.tld/etc/php.ini file (which also includes open_basedir and safe_mode settings from the panel settings).
So now you have desired content in .../domain.tld/etc/php.ini which is applied to your vhost if run in CGI/FastCGI mode.
Let me summarize:
1) in .skel you have conf/php.ini which is a template for all your sites. If you put etc/php.ini in .skel - it won't wor, Plesk will overwrite the file.
2) in domain.tld you have conf/php.ini which is your settings for the current vhost. Settings from this file are included into etc/php.ini and merged with other Plesk settings.
Would it help you?
NOTE: This php.ini is only for CGI/FastCGI. Another file and another customization approach is required for mod_php, details can be obtained from "Advanced Administration Guide"[/QUOTE]
On our Plesk 10.3.1 we enabled [B]FastCGI [/B]mode on "example.com" domain, but it seems that Apache always uses "/etc/php.ini" [B]and ignores[/B] "/var/www/vhosts/example.com/conf/php.ini" ...
After creating "example.com" with the default "Apache module", "/var/www/vhosts/example.com/conf/" and "/var/www/vhosts/example.com/etc/" [B]was without "php.ini"[/B]
[B]After set FastCGI mode[/B] on example.com, only in "/var/www/vhosts/example.com/etc/" appeared the "php.ini" as is:
[PHP]
open_basedir = /var/www/vhosts/example.com/httpdocs:/tmp
safe_mode = Off
"/var/www/vhosts/example.com/conf/" remains without the php.ini (is it normal ?)
so i put in "/example.com/conf/" this php.ini and I restarted Apache (httpd)
[PHP]
safe_mode = Off
open_basedir = /var/www/vhosts/example.com/httpdocs:/tmp
session.save_path = /var/www/vhosts/example.com/httpdocs/session [B]( <-- IGNORED !! the session was created in the default-php folder "/tmp" )[/B]
It seems that Apache [B]IGNORES both "per domain php.ini"[/B] and it [B]looks only[/B] to the general default "/etc/php.ini" ...
Why so ? Something missing ?
Thank you.
I.