Install Apache Server on CentOS 7
In this guide, we will show you how to install Apache httpd Server on CentOS 7 hosted on DigitalOcean or Alibaba Cloud or any other cloud server.
Install Apache Server using yum
sudo yum -y install httpd httpd-devel
Replace ^ with #& in welcome.conf
sudo sed -i 's/^/#&/g' /etc/httpd/conf.d/welcome.conf
Start Apache server
sudo systemctl start httpd.service
Enable it to start automatically when you reboot the server
sudo systemctl enable httpd.service
That’s it. You’re ready to use Apache httpd server.