ServerLimit Failed

shanky

Verified User
Joined
Dec 7, 2007
Messages
89
I'm using CentOS 5.0 / Apache 1.3 / php4.4.7

My httpd.conf is like this

ServerType standalone
ServerRoot "/etc/httpd"
LockFile /var/run/httpd.lock
PidFile /var/run/httpd.pid
ScoreBoardFile logs/apache_runtime_status
ResourceConfig /dev/null
AccessConfig /dev/null

ServerLimit 700
MaxClients 700
Timeout 300
KeepAlive On
MaxKeepAliveRequests 1024
KeepAliveTimeout 5
MinSpareServers 5
MaxSpareServers 20
StartServers 8
MaxRequestsPerChild 1000

When I restart the httpd service, I received this error

[root@ns1 customapache]# /sbin/service httpd restart
Stopping httpd: [ OK ]
Starting httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf:
Invalid command 'ServerLimit', perhaps mis-spelled or defined by a module not included in the server configuration [FAILED]

Please advice how I can put ServerLimit into the httpd.conf.

Thanks
 
[root@ns1 customapache]# /sbin/service httpd restart
Stopping httpd: [ OK ]
Starting httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf:
Invalid command 'ServerLimit', perhaps mis-spelled or defined by a module not included in the server configuration [FAILED]
According to Apache MPM Common Directives:

"If ServerLimit is set to a value much higher than necessary, extra, unused shared memory will be allocated. If both ServerLimit and MaxClients are set to values higher than the system can handle, Apache may not start or the system may become unstable."

I suggest you Google for answers and information about ServerLimit. You'll find so much info to help you sort this out.
 
Back
Top