How to Install Apache on CentOS 7
Saturday, January 16, 2016
How to Install Apache on CentOS 7 :-
Following Steps to install apache on CentOS7.
Step 1:- Install Apache
# sudo yum clean all
# sudo yum -y update
# sudo yum -y install httpd
Step 2:- Allow Apache via Firewall
Allow the default HTTP and HTTPS port, ports 80 and 443, through firewalld:
# sudo firewall-cmd --permanent --add-port=80/tcp
# sudo firewall-cmd --permanent --add-port=443/tcp
And reload the firewall:
# sudo firewall-cmd --reload
Step 3:- Configure Apache to Start on Boot
# sudo systemctl start httpd
# sudo systemctl enable httpd
# sudo systemctl status httpd
To stop Apache:
# sudo systemctl stop httpd
Following Steps to install apache on CentOS7.
Step 1:- Install Apache
# sudo yum clean all
# sudo yum -y update
# sudo yum -y install httpd
Step 2:- Allow Apache via Firewall
Allow the default HTTP and HTTPS port, ports 80 and 443, through firewalld:
# sudo firewall-cmd --permanent --add-port=80/tcp
# sudo firewall-cmd --permanent --add-port=443/tcp
And reload the firewall:
# sudo firewall-cmd --reload
Step 3:- Configure Apache to Start on Boot
# sudo systemctl start httpd
# sudo systemctl enable httpd
# sudo systemctl status httpd
To stop Apache:
# sudo systemctl stop httpd
0 comments:
Post a Comment