Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Apache2 and PHP5 FastCGI
PostPosted: Fri Feb 15, 2008 3:02 pm 
Offline
Newbie

Joined: Fri Feb 15, 2008 2:54 pm
Posts: 4
Website: http://darkj.d4net.org
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 :)


Top
   
 Post subject:
PostPosted: Sat Feb 16, 2008 6:58 pm 
Offline
Newbie

Joined: Fri Feb 15, 2008 2:54 pm
Posts: 4
Website: http://darkj.d4net.org
up.. :(


Top
   
 Post subject:
PostPosted: Sat Feb 16, 2008 9:41 pm 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
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

_________________
ServerAdmin - www.our-lan.com
"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"
"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
 Post subject:
PostPosted: Sun Feb 17, 2008 7:10 pm 
Offline
Newbie

Joined: Fri Feb 15, 2008 2:54 pm
Posts: 4
Website: http://darkj.d4net.org
Thanks for your reply...

Can I use php with FastCGI but without suexec?

Thanks


Top
   
 Post subject:
PostPosted: Fri Feb 22, 2008 4:36 pm 
Offline
Newbie

Joined: Fri Feb 15, 2008 2:54 pm
Posts: 4
Website: http://darkj.d4net.org
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group