Apache2 and PHP5 FastCGI

Hi!

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: ~~[http://www.linode.com/forums/viewtopic.php?t=2982&sid=810c2a5228749fa13917b5dca6e74981" target="_blank">](http://www.linode.com/forums/viewtopic. … dca6e74981">http://www.linode.com/forums/viewtopic.php?t=2982&sid=810c2a5228749fa13917b5dca6e74981](

So, the question is: What is the difference between the two configurations?

Thanks,

and sorry for my bad bad english :)

4 Replies

Ok. The difference between the way youve done it (which is the default setup in most cases) and the other tutorial.

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

Thanks for your reply…

Can I use php with FastCGI but without suexec?

Thanks

Ok, I've installed it with suexec and fastcgi..

Now.. I've got a Linode 540.. What's the best configuration of apache2 (worker) and the php-wrapper, in your opinion?

Thanks

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct