php.ini & Virtual Hosts

Parker, Joshua josh at
Wed Nov 23 13:59:00 UTC 2011

Thank you very much for this info.

On Wednesday, November 23, 2011, Reinis Rozitis <r at> wrote:
>> Is it possible to define a php.ini file per virtual host. If so, how can
it be done? Thanks.
> To actually use different php.ini files you will have to spawn seperate
php processes but you can achieve different settings for each virtualhost
using a single php.ini file:
> 1. You can use the [HOST=yourvirtualhost] ( ) approach and define the
settings directly in php.ini
> 2. You can make multiple pools in the FPM configuration  ( ) and change the
settings via php_flag / php_admin_value etc directives
> 3. You can pass the config changes also from nginx using fastcgi_param
> 4. Can also use the .user.ini approach
> rr
> _______________________________________________
> nginx mailing list
> nginx at

[image: Josh Parker WordPress Consultant] <>
Joshua Parker
WordPress Consultant
888.255.1798 x701

Consulting Site
[image: Twitter] <!/joshmac>[image:
Josh Parker :: WordPress Consultant] <>[image:
Skype][image: Google+] <>[image: WordPress
Profile] <>[image:] <>[image:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list