How To Restart Httpd or Apache2 Server in Linux

What is Httpd or Apache2  ? 

Well is the same thing actually ! You can find Https on RedHat/CentOS/Fedora operational systems and Apache2 in Debian based distros such as Ubuntu. Now that you know they the same lets see how we can Restart their services in both occasions:

Https Service management options:

We can use service command:

Start Https Service
service httpd start
Restart Https Service
service httpd restart
Stop Https Service
service httpd stop

Another option is use /etc/init.d/httpd service script.

Start Https
/etc/init.d/httpd start
Stop Https
/etc/init.d/httpd stop
Restart Https
/etc/init.d/httpd restart

 Apache2 Service management options:

We can use service command:

--restart

service apache2 restart

--stop

service apache2 stop

--start 

service apache2 start

Another option is use /etc/init.d/apache2 service script.

-- start

/etc/init.d/apache2 start

--restart

/etc/init.d/apache2 restart

-- stop

/etc/init.d/apache2 stop
Simple and easy tutorial but is a very common task.