Skip to content

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.

See also  *** System restart required *** - DigitalOcean Ubuntu droplet warning message. How to resolve?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.