Apache - Process Management: start, stop, reload

  • Last update: Apr 3, 2024
  • Views: 26
  • Author: Admin
Apache - Process Management: start, stop, reload

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:

  1. Stop Apache.
  2. Start Apache.
  3. Restart Apache.
  4. 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.

SIMILAR ARTICLES