Apache - Process Management: start, stop, reload
- Last updated: Nov 3, 2023
- Views: 264
- Author: Admin

Hello colleagues.
After installing the Apache web server, every system administrator or developer should have an understanding of how to manage Apache processes. In today's article, we will look at how to start, stop and restart the Apache web server configuration without completely stopping the web server.
The content of the article:
- Stop Apache.
- Start Apache.
- Restart Apache.
- Restart configuration.
1. Stop Apache.
There are cases when, for some reason, you need to stop the Apache web server, then to stop you need to run:
Centos - Redhat team:
$. sudo service httpd stop
Ubuntu - Debian team:
$. sudo service apache2 stop
2. Start Apache.
To start the Apache web server, you need to run:
Centos - Redhat team:
$. sudo service httpd start
Ubuntu - Debian team:
$. sudo service apache2 start
3. Restart Apache.
In order to stop and immediately start the Apache web server, you need to run:
Centos - Redhat team:
$. sudo service httpd restart
Ubuntu - Debian team:
$. sudo service apache2 restart
4. Restart the configuration.
Sometimes it happens that you have changed something in the Apache configuration file and you want your changes to be applied without stopping the web server, then for this you need to run:
Centos - Redhat team:
$. sudo service httpd reload
Ubuntu - Debian team:
$. sudo service apache2 reload
Thank you all, I hope my article was of some help to you.