Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I am having a strange problem. When I try to start xampp it fails with message:

XAMPP: Another web server daemon is already running.

When I tried to find out which server is running using following command:

netstat -tunap | grep LISTEN

result:

tcp        0      0 127.0.1.1:53        0.0.0.0:*        LISTEN  1955/dnsmasq        
tcp        0      0 127.0.0.1:631       0.0.0.0:*        LISTEN  1262/cupsd        
tcp        0      0 0.0.0.0:17500       0.0.0.0:*        LISTEN  2353/dropbox       
tcp        0      0 0.0.0.0:20414       0.0.0.0:*        LISTEN  2297/skype          
tcp6       0      0 :::80                    :::*        LISTEN  1366/apache2    
tcp6       0      0 ::1:631                  :::*        LISTEN  1262/cupsd

Here I see apache is running with, to verify it is installed or not I excuted following command:

dpkg -s apache2

Result:

dpkg-query: package 'apache2' is not installed and no information is available

Every Time I have to kill apache2 before starting xampp, which is very irritating. I am on Ubuntu 12.04,

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Apache2 is a metapackage, you need a specific 'worker' of apache2 (mpm is installed on mine) which then provides the apach2 dependancy if necessary.

dpkg -l|grep apache

Will probably find you what you're trying to find.

You could always just stop it starting up rather than removing it entirely.

share|improve this answer
    
can u please tell more about mpm and how to stop it starting up. –  g33klord Sep 28 '13 at 3:57
1  
mpm's just a "style" of worker for apache (how it handles multiple connections), if you want to remove the package, just remove whatever was in the dpkg command above (aptitude remove apache2-mpm for example). You can just turn it off probably by doing 'update-rc.d apache2 disable 2345'. –  iain Sep 28 '13 at 5:41
    
@iain Heh, didn't know that... –  kworr Oct 3 '13 at 5:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.