PDA

View Full Version : Apach won't start after editing httpd-mpm.conf



Rebecca
11-14-2007, 02:40 PM
Hello,

I'm running a server that does image hosting and hosts a high traffic website. CentOS. My host recently upgraded my PHP from 4.6 to 5.2.5 and Apache from 1.3 to 2.2

I need to configure maxclients to 1024 to handle all of the apache requests, but apache config doesn't work the same way in 2.2 as it did in 1.3. I finally got someone at my host support to tell me that I needed to edit the settings in this file: /etc/httpd/conf/extra/httpd-mpm.conf

I edited the file, and tried to restart Apache and got this error: /sbin/service httpd restart 2>&1

I removed the changes to the file, but still am getting the same error.

Any thoughts?
Thanks,
Rebecca

smtalk
11-14-2007, 02:45 PM
What error do you get in ssh after:


service httpd restart


And, if you want to increase MaxClients, you will also need to increase ServerLimit.

Rebecca
11-14-2007, 03:16 PM
OK.... chalk this one up to ineptness with the nano editor. Apparently I inadvernantly added some characters to line 1 of the file in my attempts to edit it.

Problem solved.

My kingdom for a GUI interface for Apache configuration!

hack3rb43
11-20-2007, 10:33 AM
U try


<IfModule mpm_prefork_module>
ServerLimit 1024
StartServers 10
MinSpareServers 10
MaxSpareServers 20
MaxClients 1024
MaxRequestsPerChild 0
</IfModule>

GooD Luck

I Use With Apache 2.2.6 Can Work :p