max users/domains in httpd.conf?

linkie

Verified User
Joined
Jun 21, 2006
Messages
10
Location
Netherlands
Hi,

I have a problem with a directadmin server.

Apache crash when I add a new user to my server. When I remove the user in the httpd.conf file and restart apache the server is not down anymore.

There are about 110 or 120 users in the httpd.conf, but 140 in directadmin (about 20 inactive users).

Does anyone know what to edit?
I did change the "Max clients" but that did not work
 
yes, I use apache 2. Did update apache, restart it and add new user.. but apache is still crashing.

It's a pretty big problem because resellers can add users too..
never had this stuff before :/
 
Are you sure its not a case of too many open files? What does the logs say when you try to restart apache?
 
Are you sure its not a case of too many open files? What does the logs say when you try to restart apache?
this is only in the log when I restart apache:

[Mon Apr 02 14:14:48 2007] [notice] Apache/2.2.4 (Unix) DAV/2 PHP/5.2.1 mod_ssl/2.2.4 OpenSSL/0.9.7e configured -- resuming normal operations
[Mon Apr 02 14:15:01 2007] [notice] caught SIGTERM, shutting down
[Mon Apr 02 14:15:03 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 02 14:15:06 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 02 14:15:23 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 02 14:15:24 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 02 14:15:25 2007] [warn] RSA server certificate CommonName (CN) `www.domain.nl' does NOT match server name!?
I see no further errors/warnings in the logs
 
Last edited:
Try editing /etc/init.d/httpd and adding
Code:
ulimit -S -n 32768
after
Code:
#!/bin/bash

And remove this:
Code:
	#ulimit -S -n `ulimit -H -n`
        ulimit -n 2048
        ulimit -n 4096
        ulimit -n 8192
        ulimit -n 16384
After the changes restart apache. Let me know if it helps.
 
Sorry, I can't find "ulimit" or "limit" in the httpd.conf

I use Freebsd, no debian or other OS. Sorry, I forgot to write that down. :)
 
Okay, then add
Code:
ulimit -S -n 32768
after
Code:
#!/bin/bash
 
Okay, then add
Code:
ulimit -S -n 32768
after
Code:
#!/bin/bash
I am really searching for #!/bin/bash of "bash" or "bin" in all files (also httpd.conf) but can't find it. sorry

Damn. I suppose it's an apache problem and no DA, so can't also call support for help :(

Really thanks for your help, I look forward to /bin/bash and stuff
 
linkie, could you contact me on MSN, Skype or ICQ? I'll try to fix your problem, it's very important to know a "fix" for DirectAdmin community.
 
linkie, have you looked in /etc/rc.d/init.d/httpd (or in /etc/init.d/httpd; they're links to the same file)? That's the file smtalk was referring to.

Linkie and smtalk,

The following are from my notes for Apache 1.x; if the same settings exist in Apahce 2.x, then the same fixes might help:

First make sure the MaxClients setting in /etc/httpd/conf/httpd.conf is at least 200.

and:
Code:
cd /usr/local/directadmin/data/templates
cp virtual_host*.conf custom
cd custom

Then remove all the ErrorLog lines (or comment them out) from the 4 virtual_host*.conf files that are in the custom directory.

Then:
Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
Apache should be restarted automatically after a few minutes later, but the rewrite might take a while with lots of sites).

This latter editing will disable individual error logs, which will drastically cut the number of open files apache has to deal with.

Jeff
 
Looks like to me he is confusing httpd.conf with the startup script httpd.
 
Back
Top