How to Start/Stop or Restart Apache server

Apache is the HTTP server that is freely available over the internet. It is a kind of software or program which is developed to run on Linux/Unix but now it is also working 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 the Apache server and you need to makes changes in httpd.conf file or other configuration files then you have to restart the 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
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix defaultwebpage.cgi on a webserver

Running the following commands solves the above problem:   /scripts/updateuserdomains...

How to fix IP Missing issue on cPanel/WHM

We are here to help you with solving the problem of Missing IP Server in list accounts. The...

Install Let's Encrypt SSL in cPanel/WHM

Let's Encrypt, a valid, open-source license that offers free SSL for your domains. The Let's...

Fix Email Issue on a server using the MSFE

To solve the problem of not sending/receiving email on a server using the MSFE / Mailscanner...

Domain names are not showing in WHM

We were unable to see any domains listed under WHM -> List Accounts. However, we can see the...