Help Please! A Bit Urgent!

charliez

Verified User
Joined
Sep 29, 2004
Messages
83
Hi there!

Please, please help me.

I was installing a SSL cert. Changed two lines in the httpd.conf file as instructed in another thread, and then restarted the httpd server.

My own domains are working - BUT ALL USER DOMAINS ARE DOWN! What is going on? How come only my own (the main) domain is working, and all my domains under other users are gone? The files are there, but the server's not showing anything on these domains.

HELP!
HELP!
PLEASE.

PS! All the includes files at the end of the config file is still there, as are all the files, folders etc.
 
Last edited:
The funny thing is that my own site, I can't bloody kill. you'd

think /usr/sbin/apachectl start: httpd started
ltsv-560# apachectl stop
/usr/sbin/apachectl stop: httpd stopped
ltsv-560# /usr/local/etc/rc.d/httpd stop
Stopping httpd: [ OK ]

that would do the trick and a little more (or at least I would think). But noooo. The blasted site is popping up like a boody ghost on halloween. ALL OTHER SITES, however, are completely gone.

So I stop apache in DA. That should kill it. NOOO. I can still play with the, except it says apache is off. That's cool. And tragic.
 
Last edited:
Just added

SSLCACertificateFile /usr/local/directadmin/data/users/admin/domains/ssl.dot2me.com.cacert

Have reverted all that now. Still nothing.

Was supposed to #'out
#SSLCACertificatePath /etc/httpd/conf/ssl.crt
#SSLCACertificateFile /etc/httpd/conf/ssl.crt/ca-bundle.crt
but it was already commented out.

I followed the instructions at
http://www.directadmin.com/forum/showthread.php?threadid=3816

Fairly sure I didn't screw up the config file.
 
Last edited:
Just to give a complete list of what I did

First I logged into DA and wanted to create a domain called secure.dot2me.com (my admin domain being dot2me). That didn't work at all. DA said it was successful, but nothing was available on the web. So I removed that and set it up as regular subdomain. That didn't work either - so again I removed this from DA. Now I tried to set up a domain called SSL.dot2me.com. That worked fine, so I figure there was a problem with the word "secure". So I had two domains ssl.dot2me.com and dot2me.com


This was all in accordence with the above mentioned forum thread on installing SSLs. So now I bought a cert and installed it in DA. Then the above mentioned thread said I had to #'out the lines:
#SSLCACertificatePath /etc/httpd/conf/ssl.crt
#SSLCACertificateFile /etc/httpd/conf/ssl.crt/ca-bundle.crt
and enter
SSLCACertificateFile /usr/local/directadmin/data/users/admin/domains/ssl.dot2me.com.cacert
in the httpd_conf file.

In addition I should enter
SSLCACertificateFile /usr/local/directadmin/data/users/admin/domains/ssl.dot2me.com.cacert

Being a good boy, I did all that. Saved the file and restarted apache. Now I got a msg saying
Syntax error on line 161 of /etc/httpd/conf/httpd.conf:
Cannot add module via name 'mod_php4.c': not in list of loaded modules

Looking around on the forum, I found that this was not uncommon and could be solved by #'out like this:
#<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
#</IfDefine>

So I did. Should make all domains disapear anyway.

After this, I have generally been busy crying, not having had time to f**** things up more. I did remove the SSL.dot2me.com domain through DA. Expecting all sorts of errors when restarting apache since the keyfiles would be related to this domain. Didn't compain at all. Just the usual warning about the IPs I haven't used yet.

Anyway, I haven't slept for ages, and I'm not thinking straight anymore. All advice will be helping to save my keyboard from a sudden death.
 
All sites suddenly popped up again.

I can't see the sites from my computer. Can't even ping them. Others can see them now, though, and the logs are starting to tick nicely. They are also available through anonymizer. I presume my ISP have cached them while they were down (?)

It would be interesting to know what went wrong though - not just having solved the problem by franatic guessing. I'll try to install the SSL again (with the httpd.conf changes) after I've gotten some sleep, so there is ample oportunity to f**** up all again. All in the name of science.
 
difficult to tell what's going on
better paste the error log of apache
________
XV700
 
Last edited:
kktsang said:
difficult to tell what's going on
better paste the error log of apache


Hi there!

Strangely enough all I can find are these warns in the logfile etc/httpd/logs/error_log:

[Thu Oct 7 14:56:00 2004] [notice] caught SIGTERM, shutting down
[Thu Oct 7 14:56:03 2004] [warn] NameVirtualHost 64.92.163.254:80 has no VirtualHosts
[Thu Oct 7 14:56:03 2004] [warn] NameVirtualHost 64.92.163.254:443 has no VirtualHosts
[Thu Oct 7 14:56:03 2004] [warn] NameVirtualHost 64.92.163.253:80 has no VirtualHosts
[Thu Oct 7 14:56:03 2004] [warn] NameVirtualHost 64.92.163.253:443 has no VirtualHosts
[Thu Oct 7 14:56:03 2004] [warn] NameVirtualHost 64.92.163.252:80 has no VirtualHosts
[Thu Oct 7 14:56:03 2004] [warn] NameVirtualHost 64.92.163.252:443 has no VirtualHosts
[Thu Oct 7 14:56:03 2004] [warn] NameVirtualHost 64.92.163.251:80 has no VirtualHosts
[Thu Oct 7 14:56:03 2004] [warn] NameVirtualHost 64.92.163.251:443 has no VirtualHosts
[Thu Oct 7 14:56:03 2004] [notice] Apache/1.3.31 (Unix) mod_ssl/2.8.19 OpenSSL/0.9.7c PHP/4.3.8 mod_perl/1.27 FrontPage/5.0.2.2510
[Thu Oct 7 14:56:03 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Oct 7 14:56:03 2004] [notice] Accept mutex: flock (Default: flock)

Shouldn't be the cause of the problems, I presume.

Also a couple of
[Sat Oct 9 01:46:01 2004] [warn] pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
but that's presumably just me screwing up the server.



All is OK now. The SSL seems to work too. Beats me what happened. I can kill a server just by thinking about it, so in the end it was just to be expected, I guess.
 
Back
Top