How to Start/Stop or Restart Apache server on CENTOS Linux server ?

How to Start/Stop or Restart Apache server on CENTOS Linux server ?

Apache is the HTTP server which is freely available over internet. It is a kind of software or program which is developed to run on Linux/Unix but now it is also work under systems like windows or MAC. Today’s most of the websites hosted under different servers like Linux, Windows, Java etc . But if you are hosted under Apache server and you need to makes changes in httpd.conf file or other configuration file then you have to restart Apache server so the changes may reflect.

If you are thinking how to restart Apache server through command line then don’t you worry here is the way...

To start your Apache server for Linux version 4.x/5.x/6.x or older commands :

## Start ##
# service httpd start
## Stop ##
# service httpd stop
## Restart ##
# service httpd restart
To start your Apache server for Linux version Linux version 7.x or newer commands :

## Start command ##
# systemctl start httpd.service
## Stop command ##
# systemctl stop httpd.service
## Restart command ##
# systemctl restart httpd.service
Author
bhawanisingh
Views
54,370
First release
Last update
Rating
0.00 star(s) 0 ratings
Top