apache2 can't start because too many opened files

jackc

Verified User
Joined
Jan 19, 2007
Messages
346
Hello Martynas,

Could you take a look at http://www.directadmin.com/forum/showthread.php?t=20573
maybe need to change something before compile apache2, my apache2 server have around 200 users already got this problem, other server running apache1 with 300 users doesn't have this problem. I don't know where to change and need to use custombuild to recompile.

Thanks
 
Hi, I'm bit busy right now, so, you can contact DirectAdmin support, and I'm sure they will help you with this. I'll be free after ~6-7 hours, if you won't get an answer till then, I'll try to find it out :)
 
Hello, I have temporary fixed the issue. When you have time, could you please take a look, maybe need to modify custombuild script, that's why need you to do it.
Thanks!
 
No, this problem exists on customapache too :)

P.S. Apache 2 or 2.2?
 
Last edited:
Server version: Apache/2.2.4 (Unix)
Server built: Apr 28 2007 10:28:34

I don't know why it only happen on this server, other servers running apache1.3 are fine and with more websites on them.
 
You can try to add "-DFD_SETSIZE=10240" to the EXTRA_CFLAGS line in your apache configuration.
 
I use custombuild, where should I add it to let custombuild recompile apache2.2?
 
"This is an OpenSSL bug, fixed in 0.9.8c and later (it uses select() rather than poll() and doesn't check for the FD_SETSIZE overflow)."
 
I've already commented out the ssl configuration in httpd.conf, but this still affects me, should I find a way to upgrade openssl and recompile httpd?
 
Back
Top