PDA

View Full Version : [HELP]Apache Problem?



Kadrus
December 29th, 2007, 05:46 PM
Hello,I am having a serious problem...
when I type in Terminal:

sudo /etc/init.d/apache2 restart
I get this..

sudo: /etc/init.d/apache2: command not found
Which means that there is no Apache!It was working fine yesterday..I must have done something wrong which I cannot remember...
http://localhost .doesn't work..of course..I get :"Unable to connect.."etc..
Is there anyway to fix that problem?
Thanks anyway.

Gediminas
December 29th, 2007, 06:31 PM
Maybe you somehow uninstalled Apache?

Kadrus
December 29th, 2007, 06:36 PM
Maybe you somehow uninstalled Apache?
No,I don't think so...I tried to reinstall it anyway...it told me that it's already installed...

Kadrus
December 30th, 2007, 11:14 AM
So...no one has a clue about solving this problem?

geirha
December 30th, 2007, 01:25 PM
What's the output of this?
aptitude search apache | grep ^i
You should have at least apache2 apache2-common apache2-mpm-prefork apache2-utils there. If you have them all, try reinstalling each of them.

Kadrus
December 30th, 2007, 02:19 PM
The output is :


i apache2 - Next generation, scalable, extendable web
i apache2-mpm-prefork - Traditional model for Apache HTTPD 2.1
i apache2-utils - utility programs for webservers
i apache2.2-common - Next generation, scalable, extendable web
i libapache2-mod-auth-mysql - Apache 2 module for MySQL authentication
i libapache2-mod-php5 - server-side, HTML-embedded scripting langu
iB libapache2-svn - Subversion server modules for Apache

geirha
December 30th, 2007, 05:54 PM
Have you tried reinstalling all of those packages? apache2.2-common is the one that contains /etc/init.d/apache2 ...

Kadrus
December 30th, 2007, 06:26 PM
Have you tried reinstalling all of those packages? apache2.2-common is the one that contains /etc/init.d/apache2 ...
Yes..but still nothing...:(..
thanks anyway for the help..greatly appreciated :)
Maybe I should remove the packages and reinstall them...will that do the trick?

geirha
December 30th, 2007, 10:18 PM
Yes..but still nothing...:(..
thanks anyway for the help..greatly appreciated :)
Maybe I should remove the packages and reinstall them...will that do the trick?

I'm not that familiar with how apt and dpkg actually works, that is, whether there's a difference between reinstalling and removing then installing again, but its worth a try. As long as you don't purge, the configuration should stay unchanged.

Kadrus
December 30th, 2007, 11:19 PM
I'm not that familiar with how apt and dpkg actually works, that is, whether there's a difference between reinstalling and removing then installing again, but its worth a try. As long as you don't purge, the configuration should stay unchanged.
All fixed now :)