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 IP Missing issue on cPanel/WHM

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

Domain names are not showing in WHM

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

How to install Attracta SEO Tools plugin

RequirementscPanel/WHM needs to be installed on your server. Step 1: SSH into your server and go...

How to Install CpCleaner in cPanel through SSH?

Installation Run the following shell commands as root via SSH: wget -O cpc-1.0.3.tar...

How to Secure a cPanel/WHM Web Server

Here are a few basic steps that you should keep in mind for keeping a server secure. 1) Strong...