How can I restart a Apache Webserver in Linux

Posted August 30, 2014 11.9k views

Obviously our webserver is down and we have to restart this. Does anybody know how to do this?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

To restart the Apache please enter the following line using a root-enabled user:

service httpd restart

If that doesn’t work, try this command:

service apache2 restart

Good luck :)

  • That´s perfect thanks so far a lot !!
    The next problem is,that my login into the console is my email adress, how can I put in @

  • To login into your SSH account you need to enter the credentials sent to you by email when you first created your droplet (server).
    That most likely need to be ‘root’ and a long scrambled password.

    I’d appreciate it if you 'like’ my answer :)

  • this is a desaster, the login is not working and noboy knows the login name :-(

  • thanks good, we got the access now and we restarted the webserver. We got the green “ok” but the website is still down ( any idea?

  • What do you expect us to do? We are not magicians..
    Please provide your Apache configuration and the error log file.