untuk update
sudo yum update httpd
Sudo yum install httpd
sudo firewall-cmd --permanent --add-service=http
yum install firewalld
systemctl start firewalld
systemctl enable firewalld
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
sudo systemctl start httpd
hostname –I
curl -4 icanhazip.com
sudo yum update httpd
Sudo yum install httpd
sudo firewall-cmd --permanent --add-service=http
yum install firewalld
systemctl start firewalld
systemctl enable firewalld
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
sudo systemctl start httpd
hostname –I
curl -4 icanhazip.com
http://your_server_ip
Managing the Apache process
1. To stop your Apache webserver on Centos 7, use the following command:
sudo systemctl stop httpd
2. To start your webserver use the following command:
sudo systemctl start httpd
3. To stop and start your webserver use this command:
sudo systemctl restart httpd
4. If you make configuration changes you can reload your web server by this command:
sudo systemctl reload httpd
5. To disable your webserver use the following command:
sudo systemctl disable httpd
6. To enable your webserver, use this command:
sudo systemctl enable httpd
sumber : https://orcacore.com/how-to-install-apache-on-centos-7/