SSL crashes Apache on restart

4 posts / 0 new
Last post
#1 Sat, 06/27/2015 - 06:27
applejack

SSL crashes Apache on restart

I have installed a SSL web server certificate from Thawte. This works fine until trying to restart Apache which won't start.

Starting httpd: [Sat Jun 27 11:18:31 2015] [warn] NameVirtualHost xxx:80 has no VirtualHosts [Sat Jun 27 11:18:31 2015] [warn] NameVirtualHost xxx:443 has no VirtualHosts [Sat Jun 27 11:18:31 2015] [warn] NameVirtualHost xxx:443 has no VirtualHosts (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open log

It appears that the issue is maybe that the cert file is password protected and so Apache waits for the password on starting. The solution appears to be to remove the password in the cert file.

However when using VM to generate the CSR it doesn't ask to enter a passphrase which is required to remove it and so am unable to apply this solution.

See http://ubuntuforums.org/showthread.php?t=1636667

I have restarted Apache by killing all the processes using port 80 and disabling SSL for that site but the issue is I need to have SSL running.

My OS is CentOS Linux 5.11 running Virtualmin 4.17.gpl

Sat, 06/27/2015 - 18:38
andreychek

Howdy,

It looks like you're seeing an "Address already in use" error.

That can occur if Apache isn't shutting down cleanly.

What happens if you run this command:

killall -9 httpd

Once you do that, are you then able to start Apache back up?

-Eric

Sun, 06/28/2015 - 09:44 (Reply to #2)
applejack

Hi Eric

Yes I have started Apache but I need to work out how to have SSL installed without it killing Apache on restart.

After this I updated Webmin version 1.760 and now when in Virtualmin for the domain Services > Configure Website for SSL when I try and save it I get the error message "Missing file to open at WebminCore::/usr/libexec/webmin/web-lib-funcs.pl line 3163"

Mon, 06/29/2015 - 10:28
andreychek

I don't think it's an SSL related issue that's causing that problem with Apache restarting. We've seen that on occasion throughout the years, it often appears to be a bug in one of the Apache modules which isn't shutting down cleanly.

However, there may also be another problem occurring now. I'm not sure what file it's having a tough time opening though.

What is the output of this command:

/etc/init.d/httpd configtest

Topic locked