Linux/ Debian / Ubuntu: Restart Apache 2 web server

Use

# /etc/init.d/apache2 restart

OR

$ sudo /etc/init.d/apache2 restart

OR

$ sudo service apache2 restart

OR

simply create an alias for the command that works for you.

alias rsws='/etc/init.d/apache2 restart'

Using my alias ‘rswd’

$ rsws
[ ok ] Restarting apache2 (via systemctl): apache2.service.

Uncategorized

Notice: Theme without comments.php is deprecated since version 3.0.0 with no alternative available. Please include a comments.php template in your theme. in /var/www/fahdmurtaza.com/public_html/wp-includes/functions.php on line 3984

Leave a Reply

Your email address will not be published. Required fields are marked *