Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need a web server that runs php and does not create so many processes (today I checked the running processes list and there were like 90 of them called 'httpd', 300kb each), I only know these but I don't know if they will do the same or not:

  • ngix
  • lighttpd
share|improve this question

closed as not constructive by Shane Madden, Scott Pack, mailq, jscott, John Gardeniers Sep 21 '11 at 0:17

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
The number of processes that apache makes is a function of the configuration you are using. The number it will make is also related to the load on the server. Other web servers have strengths as well as weaknesses when you need to run php, but the primary thing to realize is that there will be substantial configuration required to get these to work with php. And they will still create socket connections. –  gview Sep 20 '11 at 22:53
1  
You can limit the number of times apache forks. MaxClients httpd.apache.org/docs/2.2/mod/mpm_common.html#maxclients can limit the total max, MaxSpareThreads will limit the extra copies that will run over current connections, and MinSpareThreads will say how many to keep running over the current connections. –  becomingwisest Sep 20 '11 at 22:54
    
possible duplicate of What options do I have, to replace Apache web server? –  jscott Sep 21 '11 at 0:00

1 Answer 1

Check the wiki article for a detailed comparison of webservers. In the list, the worth noticing web servers are,

  1. nginx
  2. lighttpd
  3. LiteSpeed Web Server and
  4. Cherokee HTTP Server

However, each of these are different in terms of configuration and it really depends on your requirement to choose an appropriate alternate.

OR

You can simply tune your apache for performance and continue using it.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.