Apache2 and PHP5 FastCGI
I've just configured my new linode, with Apache2 mpm-worker and PHP5 for FastCGI..
But, I've got a question..
This is my config:
in httpd.conf
ScriptAlias /php5-cgi /usr/bin/php5-cgi
Action php5-cgi /php5-cgi
AddHandler php5-cgi .php
And I've seen this guide:
So, the question is: What is the difference between the two configurations?
Thanks,
and sorry for my bad bad english
4 Replies
The other one uses suexec, which means that rather then the php scripts running as the apache user, they run as the user that owns them. So it is more secure that way.
The other thing is that it has FastCGI and yours doesn't. FastCGI basically means that there are x amount of processes running in the background that are already awake and available to process your dynamic php type requests, rather then php having to be started up each time a new request comes along.
Let me know if you want more clarification
Can I use php with FastCGI but without suexec?
Thanks
Now.. I've got a Linode 540.. What's the best configuration of apache2 (worker) and the php-wrapper, in your opinion?
Thanks