Configure Apache Web Server 2.4.6 On Redhat/CentOs 7

Configure Apache Web Server 2.4.6 On Redhat

Configure Apache Web Server 2.4.6 is an Open Source web server that is widely used in today’s world to host the websites and also applications. Apache allows you to host multiple websites on a single IP address using Name Based Hosting. We can configure the apache server in Linux.

There is another option Apache offers you to host one website on a single IP address. It’s not recommended. if You have multiple websites hosted with single IP in your organization then it will increase hardware cost as you will have to use many servers to host multiple websites.

Check Out: Install Apache

Apache runs on port 80 HTTP and 443 HTTPS and content of the website should keep at this location /var/www/html/

Installation Apache

yum install httpd* -y

Configure Apache Server

Create a test file to test the Apache works or not after installing.

touch /var/www/html/test.html  

how to configure apache server in linux

Check Out: Enable Verbose Logs In Apache

Now edit this file to type some message

Hello world what are you waiting for just hit it XD”

apache configure

And Save file wq!

Restart the Apache service Then Go to the browser and type.

yourip/test.html or localhost/test.html

 apache configure in linux

Check Out: Httpd: Could Not Reliably Determine The Server’s Fully Qualified Domain Name

You will see this message which was in the file. If you get any error that means Apache server is not installed properly.

Now you can check Apache Version by command.

httpd -v

apache server

That’s it. apache configure in linux server

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

1 thought on “Configure Apache Web Server 2.4.6 On Redhat/CentOs 7”

Leave a comment