Web Hosting Talk







View Full Version : Need quick help, compiling apache -> changing MaxClient


kapot
11-12-2003, 05:36 PM
I want to compile the latest apache 2.0.48, and I need to be able to use MaxClient 512.
I heard that I should change something in the source code for this.

Anyone can point me the correct way ?

I read in the apache installation doc, but cant find it.

Thanks.

linux-tech
11-12-2003, 08:13 PM
you shouldn't need to recompile apache to change this value. Look in httpd.conf for Maxclients and change it, then restart the service (service httpd stop ; service httpd start).

For cpanel servers, httpd.conf can be found @ /usr/local/apache/conf/httpd.conf , for others, it depends, but usually somewhere like /etc/httpd/conf/httpd.conf I believe.

SROHost
11-13-2003, 01:57 AM
In version 1.3.x you need to edit /src/include/httpd.h and change HARD_SERVER_LIMIT. AFAIK, this does not carry over to version 2.x, so you should only have to raise MaxClients.