# cat /var/www/vhost/domain.tld/conf/php.ini
PHP:max_execution_time = 600 max_input_time = 600 memory_limit = 128M[/QUOTE] Keep in mind that it work when PHP is run over CGI or FastCGI
" 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"
upload_tmp_dir = /var/www/vhosts/[B][domain][/B]/tmp
changes to:
[I]/var/www/vhosts/example.com/conf/php.ini[/I]
[PHP]
upload_tmp_dir = /var/www/vhosts/[B]example.com[/B]/tmp
Thanks,
Ross.
Thanks for the quick reply
Can I make that a feature request then?
upload_tmp_dir = /var/www/vhosts/[B]@domain_name@[/B]/tmp
which did successfully convert to the following when creating a new domain:
[I]/var/www/vhosts/example.com/conf/php.ini[/I]
[PHP]
upload_tmp_dir = /var/www/vhosts/[B]example.com[/B]/tmp
Thanks,
Ross.
P.S. only other thing to note is that I'm on openSUSE, so the actual path I'm using is /[B]srv[/B]/www/vhosts/
One further question:
How does one get etc/php.ini to update with changes made to conf/php.ini?
(I tried /usr/local/psa/admin/bin/httpdmng --reconfigure-domain example.com but it didn't update)