Login   Register  
PHP Classes
elePHPant
Icontem

Apache 2 and FastCGI

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP Classes blog  >  Responsive AJAX appli...  >  All threads  >  Apache 2 and FastCGI  >  (Un) Subscribe thread alerts  
Subject:Apache 2 and FastCGI
Summary:Improving php's performance under Apache2
Messages:5
Author:Raphael G.
Date:2006-09-27 23:47:52
Update:2010-11-19 06:36:28
 

  1. Apache 2 and FastCGI   Reply   Report abuse  
Picture of Raphael G.
Raphael G.
2006-09-28 00:03:19
Have you tried to use Apache2 with PHP CGI's running by FastCGI?
Using FastCGI is most likely to improve the server's load and processing time by having pre-loaded cgi's.

At the moment I can't find the link I was searching for you, but I think this will give you the idea: http://www.trilithium.com/johan/2005/04/apache2-fastcgi/


  2. Re: Apache 2 and FastCGI   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2006-09-28 00:30:53 - In reply to message 1 from Raphael G.
I have not used FastCGI but from what I could gather it is not faster than mod_php nor even than PHP as Apache DSO .

I think the main interest of using FastCGI is to work around the problem that certain PHP extensions are not re-entrant, so their functions cannot be used with mod_php with a multithreaded Web server such as Apache with worker, IIS, LightHttpd, thttpd, etc..

Therefore, PHP with Apache 2 DSO can only run with prefork mode which is basically the same as Apache 1.x .

  3. Re: Apache 2 and FastCGI   Reply   Report abuse  
Picture of Rajshekhr
Rajshekhr
2009-04-18 19:28:23 - In reply to message 2 from Manuel Lemos
Hi,
We have written an application using PHP and implementing Comet technology.

We are having a hard time , we are not able to scale up to more then 25 users.

Is there any solutions where we can scale our application from 25 users to 1,000 users ?.

Let me know at sipoyraj at yahoo doot com



Regards,
Rajshekhar Sipoy

  4. Re: Apache 2 and FastCGI   Reply   Report abuse  
Picture of anis amor
anis amor
2010-11-18 09:48:17 - In reply to message 3 from Rajshekhr
Hello,

Do you know please whether I can set the number of child processes at 1 using the multi-threading model (worker) in Apache 2.X ?


Thanks in advance !!

  5. Re: Apache 2 and FastCGI   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2010-11-19 06:36:28 - In reply to message 3 from Rajshekhr
Apache is not good for that. A more efficient solution may be Node.js, but that is a JavaScript server side based implementation. It is very fast and recommended but then it would not be PHP anymore.

You may want to listen to this podcast or read the transcript, as it talks about this subject:

http://www.jsclasses.org/blog/post/3-Is-NodeJS-going-to-be-t ...