fastcgi and APC

Igor Clark igor at
Fri Mar 7 12:55:36 MSK 2008

We use php-cgi in FCGI server mode with APC and nginx very happily. We  
haven't needed to change anything in the APC config in order to get it  
to work with php-cgi, though of course production settings vary  
depending on what you want to do.


On 7 Mar 2008, at 08:03, Kiril Angov wrote:

> The is nothing specific to the PHP configuration when PHP is run as
> fastcgi. You just need to configure nginx correctly and send the right
> fastcgi_param's and you are all set. I am already running several
> servers with just nginx and PHP as a fastcgi and everything is running
> just great. Tell me if you want to see my configuration, etc.
> Kiril
> On Thu, Mar 6, 2008 at 11:49 PM, Ian M. Evans  
> <ianevans at> wrote:
>> I'm thinking of dropping my Apache backend (nginx currently handles  
>> the
>> static stuff) and dipping my toes into running php via fastcgi.
>> 1) Is there any change that needs to be made to the APC code cache
>> settings? I thought I read something about there needing to be a  
>> change,
>> but my Google searches aren't turning anything up...
>> 2) Any big surprises or PHP coding changes I need to be aware of if I
>> run PHP via fastcgi?
>> Thanks to all.
>> --
>> Ian Evans

Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 (0)20 7749  
5355 //

More information about the nginx mailing list