How to restart Apache on Ubuntu

Run the following command:


	/etc/init.d/httpd restart
 

Example:

On Ubuntu, Apache is configured to start automatically when the server boots. This is done using a script in /etc/init.d/ That script can be called with the restart parameter.


$ /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
$

References:

Ubuntu - Apache2 Web Server

Recent Comments