Portal Home > Knowledgebase > Articles Database > How to replace apache prefork to apache worker on Centos 5??


How to replace apache prefork to apache worker on Centos 5??




Posted by toy_boy, 06-01-2008, 06:34 AM
I run image , filehosing + forum site , To make my site faster i come up with an idea of changing apache prefork to apache worker. I got apache prefork preinstalled on my centos vps server. Now i want to replace it with apache worker , problem is i dont know much abt compling and cant take much risk with my unmanaged vps site , it has to be done in first shot i.e without any downtime & problem. Hope you guyz can make my problem lot easier . Thanks in Advance.

Posted by net, 06-01-2008, 06:39 AM
Moved > Technical & Security Issues.

Posted by jaegerx, 06-04-2008, 08:26 PM
Check /etc/sysconfig/httpd. You should just have to uncomment the line, HTTPD=/usr/sbin/httpd.worker Of course, this is on my Redhat 5 Server, but I assume it's gotta be close in centos. Make sure you configure the worker section in the main httpd.conf too.

Posted by toy_boy, 06-09-2008, 06:34 AM
thanks but its not working with php then , how could both httpd worker and php can work together ?? thanks

Posted by janise, 09-08-2009, 07:48 PM
I had the same problem. See here: http ://www .centos.org/modules/newbb/viewtopic.php ?topic_id=21348 You'll need PHP run as FastCGI.

Posted by tulix, 09-09-2009, 12:59 AM
Yep, that is correct - you can't run regular PHP - so why it is better (based on our experience) to run Apache's cache_mem or run second server like lighthttpd on a different port and serve the static content via lighttpd.



Was this answer helpful?

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

Also Read
CakePHP, Zend, etc. (Views: 523)