View Full Version : help, my apache server doesnt work!!!
jeffc313
July 11th, 2006, 08:28 PM
I recently aquired an old G3 Powermac. I decieded to run it as a server and I cannot connect to it from a web browser. I can ssh into the machine, and when i try running "apache2" i get this error.
root@maclintosh:/var/www# apache2
apache2: Could not 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 [::]:80
no listening sockets available, shutting down
Unable to open logs
DrSturgeon
July 11th, 2006, 11:06 PM
Use the apachectl utility (or, for apache 2, apache2ctl) to start and stop apache; not sure what just running apache2 does.
apache2ctl start
will start apache2
As for your error, it looks like something else is already using port 80. Are you sure apache isn't already running? Try opening a browser and entering 127.0.0.1 and see what you get.
gruepig
July 12th, 2006, 02:15 AM
What's in your apache config files (likely under /etc/apache2/)? Specifically, have you set the ServerName directive?
Also, check that apache isn't already running. 'ps aux | grep apache' or 'pgrep apache' should tell you if it's running. (Similarly 'telnet localhost 80' or 'sudo lsof -i | grep www' will tell you if anything is listening for connections on port 80.)
nkassi
July 12th, 2006, 02:16 AM
Check you /etc/hosts file. You need to add your machinename.domain at the end of the 127.0.1.1 line
Use the following command to restart apache:
sudo /etc/init.d/apache2 restart
This will kill all old instances of the server that might still be running and start a new one
Nic
jeffc313
July 12th, 2006, 07:24 AM
ok, added this line to he bottom,
ServerName maclintosh
now i need to try seeing if it works on port 80, because i mooved it to port 50 just to try it
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.