View Full Version : apache2 can't start because too many opened files

08-25-2007, 01:32 AM
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.


08-25-2007, 02:38 AM
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 :)

08-25-2007, 02:49 AM
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.

08-25-2007, 02:52 AM
No, this problem exists on customapache too :)

P.S. Apache 2 or 2.2?

08-25-2007, 03:04 AM
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.

08-25-2007, 03:19 AM
You can try to add "-DFD_SETSIZE=10240" to the EXTRA_CFLAGS line in your apache configuration.

08-25-2007, 09:33 AM
I use custombuild, where should I add it to let custombuild recompile apache2.2?

08-25-2007, 09:40 AM

08-25-2007, 11:46 AM
thank! will try it and see.

11-04-2007, 04:14 AM
"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)."

12-22-2007, 05:32 PM
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?