User:Gkiarie

HOW TO INSTALL APACHE IN CENTOS 7 SERVER

Apache is a popular web server that can serve a wide range of static and dynamic content to users, including HTML, CSS, JavaScript, and PHP files. The main purpose of installing Apache is to allow the server to host web pages and serve them to clients on the internet. he purpose of configuring the firewall is to ensure that the server is protected from unauthorized access and attacks. To install your apache server and configure firewall, perform the following:

1. Install the http server software.

sudo yum install httpd 2. Start the http server.

sudo systemctl start httpd 3. Configure the http server to start on boot.

sudo systemctl enable httpd 4. Configure the firewall to allow http traffic.

sudo firewall-cmd --permanent --zone=public --add-service=http sudo firewall-cmd --reload 5. Verify that the http server is working. Open a web browser and go see the default Apache web page.

http:// Replace  with the IP address of your server.