Thank you very much for this info.<br><br><br><br>On Wednesday, November 23, 2011, Reinis Rozitis <<a href="mailto:r@roze.lv">r@roze.lv</a>> wrote:<br>>> Is it possible to define a php.ini file per virtual host. If so, how can it be done? Thanks.<br>
><br>> 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:<br>><br>> 1. You can use the [HOST=yourvirtualhost] ( <a href="http://php.net/manual/en/ini.sections.php">http://php.net/manual/en/ini.sections.php</a> ) approach and define the settings directly in php.ini<br>
> 2. You can make multiple pools in the FPM configuration ( <a href="http://php.net/manual/en/install.fpm.configuration.php">http://php.net/manual/en/install.fpm.configuration.php</a> ) and change the settings via php_flag / php_admin_value etc directives<br>
> 3. You can pass the config changes also from nginx using fastcgi_param PHP_VALUE ...<br>> 4. Can also use the .user.ini approach <a href="http://www.php.net/manual/en/configuration.file.per-user.php">http://www.php.net/manual/en/configuration.file.per-user.php</a><br>
><br>> rr<br>> _______________________________________________<br>> nginx mailing list<br>> <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>> <a href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
><br><br>-- <br><span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:13px"><table border="0" cellspacing="0" cellpadding="0" width="340" height="102" style="border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(231, 231, 212);border-right-color:rgb(231, 231, 212);border-bottom-color:rgb(231, 231, 212);border-left-color:rgb(231, 231, 212)">
<tbody><tr><td width="100" bgcolor="#f0f0f0" style="text-align:center"><a href="http://www.joshparker.us/" target="_blank"><img src="http://www.joshparker.us/wp-content/uploads/2011/08/wp-signature.png" border="0" alt="Josh Parker WordPress Consultant" width="90" height="90"></a></td>
<td width="240" bgcolor="#ffffff" style="padding-left:12px;font-family:Helvetica;font-size:12px;line-height:15px"><div style="margin-top:2px;color:rgb(89, 75, 56);font-size:13px;line-height:16px;font-weight:bold">Joshua Parker</div>
<div style="color:rgb(0, 96, 128)">WordPress Consultant</div><div style="color:rgb(160, 160, 160);font-size:11px;line-height:14px">888.255.1798 x701</div><div style="height:8px;line-height:8px"> </div><div style="color:rgb(89, 75, 56);font-size:11px;line-height:14px">
Consulting Site</div><div style="font-size:11px;line-height:14px"><a href="http://www.joshparker.us/" style="color:rgb(160, 160, 160);text-decoration:none" target="_blank">www.joshparker.us</a></div></td></tr><tr><td colspan="2" align="right" bgcolor="#f0f0f0">
<table cellspacing="0" cellpadding="5" width="240"><tbody><tr><td align="center"><a href="http://twitter.com/#!/joshmac" target="_blank"><img src="http://www.joshparker.us/wp-content/uploads/2011/08/twitter.png" border="0" alt="Twitter" width="20" height="20"></a></td>
<td align="center"><a href="http://www.linkedin.com/in/joshmac" target="_blank"><img src="http://www.joshparker.us/wp-content/themes/Bluelight/images/icons/linkedin.png" border="0" alt="Linkedin" width="20" height="20"></a></td>
<td align="center"><a href="http://www.joshparker.us/feed/" target="_blank"><img src="http://www.joshparker.us/wp-content/uploads/2011/08/rss.png" border="0" alt="Josh Parker :: WordPress Consultant" width="20" height="20"></a></td>
<td align="center"><a><img src="http://www.joshparker.us/wp-content/uploads/2011/09/skype.png" border="0" alt="Skype" width="20" height="20"></a></td><td align="center"><a href="http://gplus.to/joshuaparker" target="_blank"><img src="http://www.joshparker.us/wp-content/uploads/2011/08/google+.png" border="0" alt="Google+" width="20" height="20"></a></td>
<td align="center"><a href="http://wordpress.org/extend/plugins/profile/parkerj" target="_blank"><img src="http://www.joshparker.us/wp-content/uploads/2011/08/blue-s.png" border="0" alt="WordPress Profile" width="20" height="20"></a></td>
<td align="center"><a href="http://about.me/joshuaparker" target="_blank"><img src="http://www.joshparker.us/wp-content/uploads/2011/08/aboutme.png" border="0" alt="About.me" width="20" height="20"></a></td><td align="center">
<a href="http://en.gravatar.com/joshmac3" target="_blank"><img src="http://www.joshparker.us/wp-content/uploads/2011/08/gravatar-icon.jpg" border="0" alt="Gravatar" width="20" height="20"></a></td></tr></tbody></table></td>
</tr></tbody></table></span><br>