CONFIGURATION OF APACHE (HTTPD) SERVER ON RHEL-5
Required RPM Packages:
httpd-2.2.3-6.el5.i386.rpm (This package available on RHEL DVD)
Installation Procedure:
[root@freedomcorp Server]# rpm -ivh httpd-2.2.3-6.el5.i386.rpm
warning: httpd-2.2.3-6.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:httpd ########################################### [100%]
[root@freedomcorp Server]#
Start, Stop & Restart Procedure:
[root@freedomcorp Server]# service httpd start
Starting httpd: [ OK ]
[root@freedomcorp Server]#
[root@freedomcorp Server]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@freedomcorp Server]#
NOTE: In-case if getting any issue while installing regarding dependency packages, then try with bellow things...(This is not a permanent solutions)
[root@freedomcorp Server]# rpm -ivh httpd-2.2.3-22.el5.i386.rpm apr-1.2.7-11.i386.rpm apr-util-1.2.7-7.el5.i386.rpm postgresql-libs-8.1.11-1.el5_1.1.i386.rpm
You will get config file in /etc/httpd/conf path, Modify with httpd.conf file as per your requirement...
Example: You can put your own page as home page in httpd.conf file
DirectoryIndex index.html index.html.var My-Own-Home.html
This File should available on /var/www/html/My-Own-Home.html
You can put your own designed webpage in /var/www/html/ path
Now check with server and client machien
http://localhost (Server)
http://servername (Server & Client)
http://server_IP (Server & Client)
Troubleshooting: If by server name is not opening in client machine then you have to configure DNS server (Click Here to Configure DNS Server) for name resolving, If by IP not working in client or server machine then check with httpd service...
Thanks and Regards,
Sandeep CC
No comments:
Post a Comment