Page 1 of 1

Can't start apache port in use.

PostPosted: 10. January 2010 18:33
by mewichtig
Hello to all, please help me.

After installig Ampache in Ubuntu 9.10, apache wont start.
(uninstalled ampache, still not working)


Terminal:

Starting XAMPP for Linux 1.7.3a...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Error 1! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum http://community.apachefriends.org/f/
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.




error log: /opt/lampp/logs

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 logs

thanks in advance.

W


------EDIT

sudo fuser -v 80/tcp (check whos listening on port 80)

"apache2" is the offender...

sudo /etc/init.d/apache2 stop

now I can start lampp

Starting XAMPP for Linux 1.7.3a...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: XAMPP-MySQL is already running.
XAMPP: XAMPP-ProFTPD is already running.
XAMPP for Linux started.



Can anybody be kind and explain me what happened? I have two apaches? (sorry lame question... im starting)

Re: Can't start apache port in use.

PostPosted: 10. January 2010 20:02
by Nobbie
>I have two apaches? (sorry lame question... im starting)

Yes. Obviously you already installed Apache from Ubuntu. You must delete/uninstall one of them (and probably you have two MysQL, two PHP etc.). I think, you simply should not use Xampp but use Ubuntus Server Installation instead.

Re: Can't start apache port in use.

PostPosted: 12. January 2010 18:52
by geebers
Most likely another web server is using port 80.
To find out, you could try the command,
Code: Select all
netstat -tap

This command prints out servers running on your system. Look for the service httpd.

If you have apache installed from the ubuntu repos, just use your package manager and remove it. Then install xampp.

I prefer xampp myself over the options from the ubuntu repos. xampp seems to be better configured out of the box. But thats just my opinion. Hope I don't start a flame war with that statement. :)