Install Apache Web Server Centos 7

Install Apache Web Server on Centos 7

The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.

Yum Install Apache/httpd

yum install httpd

Enable httpd service to start on boot

systemctl enable httpd.service

You should see something like

ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service'

Disable httpd service from start on boot

systemctl disable httpd.service

Start/Stop/Restart Apache

Start

systemctl start httpd.service

Stop

systemctl stop httpd.service

Restart

systemctl restart httpd.service

Check if Apache is Running

Is Running

systemctl is-active httpd.service
 
 
 
 
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Install Redis on Centos 7 How To

How To install Redis on Centos 7 Redis is an open source, BSD licensed, advanced key-value...

Setup a SSH Tunnel for Secure Browsing

Setup a SSH Tunnel to Secure your Browsing on a Public Network Have you been sitting at your...

How to extract a tar.gz file

So you have went to that website and downloaded the latest version of your files. But they are in...

How To Add Date and Time To Bash History

As Linux users and engineers, we often have to look back in our bash history to figure out...

How do I SSH into my VPS? (OS X/Terminal)

If you are on a Mac, SSH-ing into your VPS is very simple. Simply launch "Terminal" by going to...