Apache HTTP Server Installation On Centos 7

Login into the server using non-root account and run the following commands.

sudo yum clean all

sudo yum -y update

Finally install apache
sudo yum -y install httpd

Start apache server
sudo systemctl start httpd.service
or
sudo service httpd start

Enable apache to start at boot
sudo systemctl enable httpd.service

Other useful commands

To check the status of Apache
sudo systemctl status httpd
or
sudo service httpd status

To stop Apache
sudo systemctl stop httpd.service
or
sudo service httpd stop

To restart Apache server
sudo systemctl restart httpd.service
or
sudo service httpd restart

After apache installation you may now install mariadb mysql database management system

Previous Post
Centos 7 VPS setup to host a website : The first step
Next Post
Installing Mariadb (MySQL) On Centos 7

Related Posts

Leave a Reply

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

Fill out this field
Fill out this field
Please enter a valid email address.

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

alert('dsf'); console.log("dsdsdsd");