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

How to block Bittorent traffic with IPTables

How to Block Bittorrent Traffic with IPtables IPTABLES is a user-space application program...

How to Install Squid Proxy Server on CentOS 7

This can run on any VPS from us running minimum specs. Make sure to have your server up-to-date...

OpenVPN Tutorial For Debian/Ubuntu on OpenVZ

What is OpenVPN?OpenVPN is a reliable and well tested VPN solution that is able to run over a...

Install Remi and EPEL yum repo Centos 7

Install Yum EPEL and Remi repositories on Centos 7 Adding additional useful repo's on Centos 6...

APF Firewall -Advanced Policy Firewall - Basics

APF Firewall -Advanced Policy Firewall - Basics Advanced Policy Firewall, or APF, is a...