Hi all,
I have installed Webmin and VirtualMin on a new server today (CentOS 6.7).
I have created a virtual server and uploaded a site (I haven’t changed the DNS settings against the domain hosted elsehwere just yet).
When I try to preview the site, it just goes to a blank page with an error.
I think this is because apache isn’t running.
I’ve tried to start it but get the following:
Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
[FAILED]
Address already in use = apache’s already running. Confirm that with ps -x | grep apache or look at “System Information” status page.
In recent days, another admin had a blank page due to a Python issue. Click “Support” atop this page and you can search for it.
Yup, as AustinTX mentioned, it sounds like there may be an existing Apache process running… we’ve seen those occasionally get “stuck”. It should just be a matter of killing that process, then restarting Apache.
The status information page shows that apache isn’t running, and when I try to run, I get the initial error.
It also shows that httpd isn’t running in Bootup and Shutdown, and then I try to start it, I get the same error.
I tried ps -x | grep apache but got the following:
Warning: bad syntax, perhaps a bogus ‘-’? See /usr/share/doc/procps-3.2.8/FAQ
3351 pts/0 S+ 0:00 grep apache
If I run the following via SSH, i get the same error: /etc/rc.d/init.d/httpd start.
Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
Please help, I’m getting a bit desperate!
Should I scrap it all and start again from scratch?
Well, as a Linux admin, you are familiar with ps and using it to get the process number to kill. Remember some versions of ps don’t like a dash, and others don’t care if it’s there or not. Try the command again with variations. Look up how to find a running process on your version of Linux, and then kill -9 apache2 (or apache or httpd) then restart it as andreychek suggested. 8^D
Also, your uploaded website might just not work until you access it by domain name. How are you browsing to it? By raw IP address? Put an entry for it in your HOSTS file so your PC’s browser will send the right headers to the test web server at it’s current location.
Sorry, the two ps searches you performed only showed the grep command you had issued to filter for “apache”. Apache itself doesn’t appear to be running.
When you use the Preview Website link, look on the status bar of your browser. I think you will see it is referring to it by domain name, which will not work until you update your domain registration to point to the IP of your Virtualmin server. Or put a suitable line in your workstation’s HOSTS file so the hostname will work, from your workstation, for testing purposes: 192.168.10.100 domain.com
I don’t know why you can’t start Apache on this server. Perhaps when you installed it you selected Nginx to try it out? There was an issue with the repositories yesterday - you might have built your system before that problem was fixed. You could scrap and rebuild your Virtualmin server over again (shouldn’t really take long), or you could clone your other CentOS VM server and change it’s hostname.
Can I just confirm the order that I did things yesterday.
As soon as the server was available.
1/ Create new user with sudo permission and disable root access.
2/ Upgraded the PHP version using the instructions in the webmin doc for multiple php.
3/ Install webmin using these instructions:
I can’t imagine those steps would cause any problem but I’m not a developer just a guy who uses VM like you. Let us see if an expert can think of possible issues.
I generally suggest troubleshooting the problem you’re experiencing rather than starting over, as starting over doesn’t guarantee the problem will be fixed.
But in general when doing an install, I’d suggest installing your distro, then immediately installing Virtualmin before anything is changed.
Once Virtualmin is installed and working, then you can do additional things, like setting up a second PHP version.
Also, an FQDN is something like “host.domain.com” – it’s the full name you’re going to give your server.
Hmm, connecting the dots here; your website shows as blank page until https support is disabled - perhaps the problem comes down to your browser blocking “mixed content” and not giving you any visual indication. Since you uploaded this website for test purposes and enabled https, you might need to see that it has an appropriate encryption certificate. Go to Server Administration, Manage SSL Certificate and generate a new self-signed cert to overwrite whatever is in play.