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

CentOS One Liner Commands

Centos Oneliners kill all pts for x in $(ps aux | grep pts| awk '{print $2}'); do kill...

Install ionCube Loaders for Centos

Installing ionCube Loaders for Centos 6 PHP 5.4 This module is basically PHP extension that...

How to block a bot by User Agent Sting

How to block a bot by User Agent Sting Do you have those bandwidth hogging bots as much as...

How do I SSH into my VPS? (Windows/Putty)

This article will teach you how to access your server via SSH using the PuTTY client on Windows....

How to install Tomcat6 Server on Centos6

How to install Tomcat6 Server on Centos6 Tomcat is an Opensource webserver and used for Java...