I switched from SLES to Ubuntu and now I want to restart my local server. In SLES I used :
rcapache2 restart
but this somehow seems not to work in Ubuntu. :(
How do i restart my Apache?
|
|
|
Or |
|||||
|
|
The recommended way under Ubuntu to start/stop services (not just Apache) is to use the start/stop/reload commands (which really are symbolic links to the initctl program, part of upstart). For services that use the legacy So, to start/stop/reload/restart apache on Ubuntu, you can use:
|
|||
|
|
|
Do you want to restart Apache, or do you want to gracefully reload its configuration? Everyone was answering the first question; you can do the second with
or
Gracefully reloading is a bit faster, and there's no downtime. There's one caveat: if your apache config files contain an error, the server will silently exit without printing any error messages to the console. |
|||||||
|
Of course you can swap out |
|||
|
As Marius said graceful should be used either to restart:
or
to stop Apache gracefully. These commands wait until all requests for web pages have been served before restarting/stopping the web server so that your user's don't get half a web page. |
|||
|
|
|
Try this program : http://apache-switch.webuda.com/ It’s very easy to use. You can turn on, turn off or restart apache server. |
|||
|
|
|
if you are root: (In Ubuntu root is disabled, I think, than use 'sudo' command!)
(If you used a2ensite or a2dissite, you have to reload your apache configuration) |
|||||||||||||
|