Portal Home > Knowledgebase > Articles Database > compile apache


compile apache




Posted by ti_nhatrang, 03-09-2008, 05:09 AM
Hi all, Was wondering if there's anyway we can compile apache from scratch with 1000 maxclient instead of the 250 default. Please help.

Posted by JohnCrowley, 03-09-2008, 10:53 AM
If using prefork: edit server/mpm/prefork/prefork.c and search for the line: #define DEFAULT_SERVER_LIMIT 256 Change 256 to 1000 and compile. - John C.

Posted by ti_nhatrang, 03-09-2008, 01:51 PM
this is a brand new centos 5.1 server, not sure if it's using prefork.c or what not? how do you find out? Does this apply to apache 2.x?

Posted by ti_nhatrang, 03-09-2008, 02:09 PM
Just found out from httpd -V that I am indeed running Prefork, question now is how and where do I go to edit that file?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Is lavabit SLOW (Views: 635)
MySQL memory problem (Views: 569)