How to restart Apache in Ubuntu

1011405 pts.
Tags:
Apache
Ubuntu
Just recently, I migrated from SLES to Ubuntu and I have to restart my local server. I have been using rcapache2 restart but that's not working in Ubuntu. Is there a way I can restart Apache?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Yes, definitely.

Try:

sudo service apache2 restart

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • danieljones
    sudo service apache2 restart|stop|start 

    2,825 pointsBadges:
    report
  • AjitK29
    sudo service apache2 restart

    Or
    sudo restart apache2

    2,475 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: