PDA

View Full Version : Apache wont start - Too many open files - Unable to open logs



Mich
11-22-2008, 02:51 PM
Hi,

All the suddenly my monitoring service noticed apache was down on my server. And it wont start anymore

I am running CentOS with DirectAdmin

When i type service httpd start i get the following:


Starting httpd: WARNING: MaxClients of 400 exceeds ServerLimit value of 256 servers,
lowering MaxClients to 256. To increase, please see the ServerLimit
directive.
Warning: DocumentRoot [/home/evoigt/domains/xxad.nl/public_html/mobile] does not exist
[FAILED]


The server never had problems before

The log contains:


[Sat Nov 22 23:07:13 2008] [info] mod_unique_id: using ip addr 91.192.38.15
[Sat Nov 22 23:07:14 2008] [info] Init: Seeding PRNG with 136 bytes of entropy
[Sat Nov 22 23:08:01 2008] [info] mod_unique_id: using ip addr 91.192.38.15
[Sat Nov 22 23:08:02 2008] [info] Init: Seeding PRNG with 136 bytes of entropy
[Sat Nov 22 23:08:12 2008] [info] mod_unique_id: using ip addr 91.192.38.15
[Sat Nov 22 23:08:13 2008] [info] Init: Seeding PRNG with 136 bytes of entropy
[Sat Nov 22 23:09:01 2008] [info] mod_unique_id: using ip addr 91.192.38.15
[Sat Nov 22 23:09:02 2008] [info] Init: Seeding PRNG with 136 bytes of entropy
[Sat Nov 22 23:09:12 2008] [info] mod_unique_id: using ip addr 91.192.38.15
[Sat Nov 22 23:09:13 2008] [info] Init: Seeding PRNG with 136 bytes of entropy
[Sat Nov 22 22:09:47 2008] [error] (24)Too many open files: could not open transfer log file /var/log/httpd/domains/***.net.send.log.
Unable to open logs
[Sat Nov 22 22:09:51 2008] [error] (24)Too many open files: could not open transfer log file /var/log/httpd/domains/***.net.send.log.
Unable to open logs


I have googled and came up with topics like upgrading 'ulimit' to 2048 but that doesnt fix the problem for me, then i get a segmentation fault when i try to start apache.

Does anyone has a tip?

Mich
11-29-2008, 03:34 AM
Well i fixed it alright, increased file descripters