adding new domain crashes httpd

opusi

New member
Joined
Sep 17, 2004
Messages
3
I have run into a problem where if i add a new user/domain, httpd stops and will not restart until i remove the domain i just added.

Checking the log files, i do not see anything that specifically shows why httpd stops.
 
I did notice something like that aswell, only after a few minutes it seems like da is restarting httpd and everything is fine.

Doesn't it resume after a few minutes when u did enter a new user ?
 
If you restart apache from the command line you should be able to see any errors.

On RH-based linuxes:

service httpd restart

Jeff
 
I've noticed the same thing; I cannot restart Apache until I remove the new domain.

There are no messages in the error log; Apache appears to die on restart, before it can log.

It does not appear to be a configuration file problem - "apachectl configtest" returns no errors; core is dumped in /. Running gdb on the core file suggests that the problem is in mod_ssl:

Code:
(gdb) where
#0  0x2831a13a in RSA_new_method () from /lib/libcrypto.so.3
#1  0x28319eea in RSA_new () from /lib/libcrypto.so.3
#2  0x283337e8 in RSAPrivateKey_asn1_meth () from /lib/libcrypto.so.3
#3  0x2833f8a6 in ASN1_item_ex_new () from /lib/libcrypto.so.3
#4  0x2833f6c3 in ASN1_item_ex_new () from /lib/libcrypto.so.3
#5  0x2833b21c in ASN1_item_ex_d2i () from /lib/libcrypto.so.3
#6  0x2833ac85 in ASN1_item_d2i () from /lib/libcrypto.so.3
#7  0x28333847 in d2i_RSAPrivateKey () from /lib/libcrypto.so.3
#8  0x28238259 in ssl_init_TmpKeysHandle () from /etc/httpd/modules/libssl.so
#9  0x28237d63 in ssl_init_Module () from /etc/httpd/modules/libssl.so
#10 0x080583a6 in ap_init_modules ()
#11 0x08062c8a in standalone_main ()
#12 0x0806355d in main ()

This was initially with Apache/1.3.34 (Unix) mod_ssl/2.8.25 OpenSSL/0.9.7d PHP/4.4.1; I tried going back a version of mod_ssl to Apache/1.3.33 (Unix) mod_ssl/2.8.24 OpenSSL/0.9.7d PHP/4.4.1; the same behavior occurs. This is on FreeBSD 5.3.

Andy
 
Opusi, what version of Apache, mod_ssl and PHP are you running on what OS? Is PHP compiled with openssl support (the default now in the customapache build script)?

Thanks,
Andy
 
While testing the configuration files against a ports-installed Apache, I discovered that I was able to solve this problem if I rebuilt the Apache configuration files through DA:

Code:
 echo "action=rewrite&value=ips" >> /usr/local/directadmin/data/task.queue
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

Andy
 
Back
Top