Can't start apache port in use.

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Can't start apache port in use.

Postby mewichtig » 10. January 2010 18:33

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)
mewichtig
 
Posts: 1
Joined: 10. January 2010 18:21

Re: Can't start apache port in use.

Postby Nobbie » 10. January 2010 20:02

>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.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

Re: Can't start apache port in use.

Postby geebers » 12. January 2010 18:52

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. :)
geebers
 
Posts: 7
Joined: 08. January 2010 16:45


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 63 guests