how to Start, Stop and Restart Apache 2 Web Server using Command in ubuntu ?

Posted in CategoryGeneral
  • K
    Kashiyani vimal 2 months ago

    i have to get problem many time about Start, Stop and Restart Apache 2 usign command line so please help me.

  • H
    Hardik Savani 2 months ago

    you can fire following command

     

    Restart Apache 2 web server, enter:

    # /etc/init.d/apache2 restart

    or

    $ sudo /etc/init.d/apache2 restart

    or

    $ sudo service apache2 restart

     

    To stop Apache 2 web server, enter:

    # /etc/init.d/apache2 stop

    or

    $ sudo /etc/init.d/apache2 stop

    or

    $ sudo service apache2 stop

     

    To start Apache 2 web server, enter:

    # /etc/init.d/apache2 start

    or

    $ sudo /etc/init.d/apache2 start

    or

    $ sudo service apache2 start

Please login or register to leave a response.

* You May Also Like Bellow Issue to check *