How to Restart Apache in Ubuntu?
Contents Debian/Ubuntu Linux Specific Commands to Start/Stop/Restart Apache Restart Apache 2 Web Server, Enter: # /Etc/Init. D/Apache2 Restart. Or. $ Sudo...
Contents
Debian/Ubuntu Linux Specific Commands to Start/Stop/Restart Apache
- Restart Apache 2 web server, enter: # /etc/init.d/apache2 restart. OR. $ sudo /etc/init.d/apache2 restart.
- To stop Apache 2 web server, enter: # /etc/init.d/apache2 stop. OR.
- To start Apache 2 web server, enter: # /etc/init.d/apache2 start. OR.
How do I restart Apache gracefully?
Restarting Apache Web Server from the command line
- Start Apache. apachectl start.
- Stop Apache. apachectl stop. Graceful Stop apachectl graceful-stop.
- Restart Apache. apachectl restart. Graceful restart apachectl graceful.
- To find the Apache version. httpd -v.
Must Read
How do I know if Apache is running on Ubuntu?
How to check running status of LAMP stack
- For Ubuntu: # service apache2 status.
- For CentOS: # /etc/init.d/httpd status.
- For Ubuntu: # service apache2 restart.
- For CentOS: # /etc/init.d/httpd restart.
- You can use mysqladmin command to find out whether mysql is running or not.