| Author |
Message |
DarkJ
Joined: 15 Feb 2008
Posts: 4
|
| Posted: Fri Feb 15, 2008 2:02 pm Post subject: 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
Code:
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
So, the question is: What is the difference between the two configurations?
Thanks,
and sorry for my bad bad english :) |
|
| Back to top |
|
DarkJ
Joined: 15 Feb 2008
Posts: 4
|
| Posted: Sat Feb 16, 2008 5:58 pm Post subject: |
|
|
| up.. :( |
|
| Back to top |
|
Internat
Joined: 17 Aug 2004
Posts: 174
Location: Brisbane, Australia
|
| Posted: Sat Feb 16, 2008 8:41 pm Post subject: |
|
|
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 |
|
| Back to top |
|
DarkJ
Joined: 15 Feb 2008
Posts: 4
|
| Posted: Sun Feb 17, 2008 6:10 pm Post subject: |
|
|
Thanks for your reply...
Can I use php with FastCGI but without suexec?
Thanks |
|
| Back to top |
|
DarkJ
Joined: 15 Feb 2008
Posts: 4
|
| Posted: Fri Feb 22, 2008 3:36 pm Post subject: |
|
|
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 |
|
| Back to top |
|
| |