How do I restart Apache?
Only customers with a
VPS package can restart Apache and other services
Apache or Apache HTTP server is open-source software which without lots of the internet would
stop working. Apache is a middleman, it’s not a physical server, and it doesn’t
hold actual content. This is because its purpose is to pull content from a server and serve
it to the client machine via an HTTP request.
At Fastnet Hosting, all of our hosting plans include Apache. Sometimes, restarting Apache is
the best fix. This is usually a simple task.
Restarting Apache with cPanel/WHM
- Firstly, login to your cPanel/WHM control panel.
- Now that you’re logged in, use the search bar in WHM search for
Apache.
- The restart services category will appear, Click HTTP Server
(Apache)
- Afterwards, to the right of the navigation bar, there will be a prompt. Click yes
to begin the restart process.
- A loading bar will appear, indicating the restart is in progress.
- Consequently, if the restart was successful, you will see the message Apache has
successfully restarted!
Restarting Apache with Plesk
- Firstly, log into your Plesk control panel.
- Once you have logged in, using the navigation sidebar, click tools &
settings under the server management category.
- Whilst in tools & settings, under server management, click
on services management.
- This area controls all running services on the server. Including Apache, which may be at
the top or bottom depending on the version of Plesk.
- Hover over Web Server (Apache) from here you can choose to
stop, start or restart the Apache service using the available buttons.
- To restart Apache, click the Cog button labelled restart
the service.
- The restart process is initialized.
- You will be prompted once it has completed.
Restart Apache via Command line
Use of the command line is not recommended, Misuse
of the command line could lead to data loss, for which we’re not responsible.
- Open your SSH client and connect to your VPS using your SSH details.
- Restart the Apache service using one of the below commands.
service httpd graceful
service httpd restart
In most cases, graceful is all that is required.
It will only restart idle processes.