hello all. i'm running ubuntu 7.04 Feisty Fawn. i have had apache2 installed and running now for weeks. i turned off my computer last night, which i rarely do. and i booted this morning, and started working on a site in development. then i find out that my localhost isn't running... kumi@throne:~ % sudo /etc/init.d/apache2 stop * Stopping web server (apache2)... apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName httpd (no pid file) not running [ OK ] kumi@throne:~ % sudo /etc/init.d/apache2 start * Starting web server (apache2)... apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName (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 [fail] Code (markup): it has always mentioned something about not being able to determine the server's domain name or whatever, but it always worked. i've never had this problem before and i REALLY REALLY need some help with this one. any suggestions? thanks in advanced.
login as root then check apache config using rcapache2 configtest rcapache2 extreme-configtest and see what ouput you get may be the erorr output helps you to pin point your problem-cause
something is wrong with your SSL virtualhosts, grep your configs for 0.0.0.0 ? checked your error log?
The error message you posted says that something else is already listening on port 443 (which is used for SSL) Type this on the command line: sudo netstat -anp | grep LISTEN | grep 443 Code (markup): to find out which program is listening on port 443 and it's process id (PID) Once you know that, track down where it gets started and configured and change the configuration so that it isn't a problem anymore. The most likely problems are that either Apache didn't start properly and then didn't shut down properly and left a process listening on port 443 but no PID stored in the pidfile or that you have Apache 2 and Apache 1.3 installed and one of them gets started up before the other one does. I spotted another error in that error message you posted which can be solved by putting a ServerName localhost Code (markup): directive in your httpd.conf, but somewhere that's not inside a VirtualHost directive.