django-renjith
django-renjith

Reputation: 4000

apache2: unrecognized service in ubuntu 14.04 LTS?

i try to install Apache 2 on my Ubuntu system version is 14.04 LTS, installation was success full but when i try to restart the Apache its showing unrecognized service , please help me to solve this problem. Thanks in advance.

Upvotes: 3

Views: 21716

Answers (3)

Ibtissem Hattab
Ibtissem Hattab

Reputation: 11

sudo apt-get remove --purge apache2 apache2-utils

sudo apt-get install --reinstall apache2 apache2-utils

sudo service apache2 start

and then check by:

sudo service apache2 status

Upvotes: 1

pl_rock
pl_rock

Reputation: 15792

I faced same problem and solved it by running the following command:

sudo apt-get purge  apache2 apache2-utils apache2.2-bin
sudo apt-get autoremove
sudo apt-get install  apache2 apache2-utils apache2.2-bin 

Upvotes: 0

Mr. Programmer
Mr. Programmer

Reputation: 3103

To start the apache server, you can use this command:

$ sudo service httpd start

Other available commands are as follows:

$ sudo service httpd restart  ## restart the apache server
$ sudo service httpd stop     ## stop the server

To list all httpd commands:

$ sudo service httpd

Upvotes: 3

Related Questions