PDA

View Full Version : Apache 2 and Include Directive



boombick
01-04-2008, 12:18 PM
Hello! Sorry for my english, its not my own language...

Strange situation...
I have DA 1.31 version and httpd-2.0.59
In the end of main config file (/etc/httpd/conf/httpd.conf) with Include directive plugged other config files:


~
Include /usr/local/directadmin/data/users/username1/httpd.conf
Include /usr/local/directadmin/data/users/username2/httpd.conf
Include /usr/local/directadmin/data/users/username3/httpd.conf
~

I have 75 users (and 75 config files =)) But when including 75th config file the apache is segmentation fault :(


[root@server ~]# /sbin/service httpd restart
Stopping httpd: [ OK ]
Starting httpd:
/etc/init.d/httpd: line 55: 21600 Segmentation fault $ENV $httpd -k start -DSSL
[root@server ~]#

The log files is empty. How fix this trouble?

boombick
01-04-2008, 12:24 PM
If comment _any_ (not only the latest) line with user's config include - all working good! Maybe exists some restricts?

nobaloney
01-05-2008, 03:54 PM
I don't know of any; lots of us have many more than 75. My own production servers are still all running Apache version 1; the server I just checked has 184 such lines.

Can anyone with Apache 2 let us know how many they can run successfully.

Jeff

mattb
01-06-2008, 06:03 AM
It's easily avoided by using a wildcard.


Include /usr/local/directadmin/data/users/*/httpd.conf

smtalk
01-06-2008, 07:25 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)."

holographic
01-15-2008, 11:36 AM
Is there a way around this with out updating openssl???

This is not an option for us afor a few weeks but it is hard to keep apache 'up' at the moment?

Alan

snaaps
01-28-2008, 06:03 AM
Hello,

Whe have the same problem.
when we disabled 1 or more user in: nano /etc/httpd/conf/extra/directadmin-vhosts.conf
apache will run.

I think when it has more lines than 244 than whe get this message and apache wont run.

Als in the apache error log we see: (a lot of)

[Mon Jan 28 11:45:05 2008] [warn] Init: SSL server IP/port conflict: www.domain1.nl:443 (/usr/local/directadmin/data/users/id02117/httpd.conf:48) vs. www.domain2.nl:443 (/usr/local/directadmin/data/users/id02483/httpd.conf:48)