Apache2 Server not starting

I installed Apache 2 using:

sudo apt-get install Apache2

Then tried to start it with:

sudo service Apache2 start

But ended up with:

Failed to start Apache2.service: Unit Apache2.service not found.

Any help? Thx

2 Answers

Remember that linux/unix is case-sensitive, so apache2 is not the same as Apache2

Try

sudo apt-get install apache2

Then it should start right after you install it

sudo service apache2 status

If stopped

sudo service apache2 start
3

The problem is the upper_case letter being used on your command.

USE: sudo service apache2 status NOT: sudo service Apache2 status

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like