Install Apache Web Server on RedHat/CentOS 7

Apache is available within CentOS’s default software repositories, which means you can install it with the yum package manager.

yum install -y httpd

You might need to allow HTTP(port 80) and HTTPS (port 443) from firewall, use below:
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd –reload

Start and enable apache process so that after system reboot service start automatically.

systemctl start httpd
systemctl enable httpd

Verify Service:
systemctl status httpd

Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2019-02-20 01:29:08 UTC; 5s ago
     Docs: man:httpd(8)
           man:apachectl(8)
 Main PID: 1290 (httpd)
   Status: "Processing requests..."
   CGroup: /system.slice/httpd.service
           ├─1290 /usr/sbin/httpd -DFOREGROUND
           ├─1291 /usr/sbin/httpd -DFOREGROUND
           ├─1292 /usr/sbin/httpd -DFOREGROUND
           ├─1293 /usr/sbin/httpd -DFOREGROUND
           ├─1294 /usr/sbin/httpd -DFOREGROUND
           └─1295 /usr/sbin/httpd -DFOREGROUND
...
Now open web browser and point to your publicip
http://your_server_ip
You’ll see the default CentOS 7 Apache web page:


To Install Apache Tomcat as a service on RedHat/CentOS 7 go here
Also to install word press go here.

Post a Comment

Thanks for your comment !
I will review your this and will respond you as soon as possible.