Major problem after upgrade Apache 2.x

trebbor

Verified User
Joined
Jun 21, 2005
Messages
33
We have a major problem with one of our servers after we've upgraded to Apache 2.x and PHP 5.x.

Everytime when we create a new reseller/user or domain, apache 2.x will stop running and won't come up.

[root@xxx httpd]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [FAILED]

(yes we have looked for PID files and killed all processes of Apache)

Apache 2.x will only start when we remove the new vhost in /etc/httpd/conf/httpd.conf:

#Include /usr/local/directadmin/data/users/newxxdomain.com/httpd.conf

/var/log/messages:
Sep 15 16:02:16 xxx httpd: httpd start up failed

/var/log/httpd/error_log
[Sat Sep 15 16:05:51 2007] [notice] caught SIGTERM, shutting down
[Sat Sep 15 16:05:52 2007] [info] Init: Initializing OpenSSL library
[Sat Sep 15 16:05:52 2007] [info] Init: Seeding PRNG with 136 bytes of entropy

If we copy an other vhost configfile to the newly created domain the same problem will happen.

The whole problem is, that we can't find any strange errors, apache in debugmode gives no errors, only that it won't start.

Server will start in gracefulmode, but everytime we add a new user Apache is shutting down and won't come up.

We’ve rebuild apache 2.x several times, php etc etc etc...................

We're running out of options, but we see many SSL errors, maybe its open_ssl?

Apache:
Server version: Apache/2.0.61
Server built: Sep 15 2007 14:14:59

PHP:
PHP 5.2.4 (cli) (built: Sep 15 2007 14:27:20)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.2.8, Copyright (c) 1998-2007, by Zend Technologies
 
We're a step further now....

When we exlude two vhosts in httpd.conf, apache is running..........

[root@xxx users]# less /etc/httpd/conf/httpd.conf |grep /usr/local/directadmin/data/users/ |wc -l
286

-2 excluded = 284 vhosts....... doesn't make any sense...

has apache 2 a maximum of vhosts?
 
This did not help... unfortunaly :(

Anybody have more ideas / input please?
 
Also double check that you edited the 4 virtual_host2*.conf files... the virtual_host*.conf files without the 2 in them are for apache 1.3, then virtual_host2*.conf files are for 2.x, so those would need to be edited.
Issue the action=rewrit&value=httpd command after writing (mentioned in the guide).

Past that, there are other things in the guide you can try, like changing limits for the file descriptor limits for the system.

John
 
Back
Top