Configure Apache Web Server 2.4.6 On Redhat

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

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

Check Out : Install Apache

Apache runs on port 80 HTTP and 443 HTTPS and content of 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   

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”

And Save file wq!

Restart the Apache service

Then Go to the browser and type

yourip/test.html or localhost/test.html

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

That’s it.

Sponsored

LEAVE A REPLY

Please enter your comment!
Please enter your name here

six − four =