Sunday, March 20, 2011

LINUX Server Setup (WEB SERVER or APACHE)

WEB SERVER (Apache)

Service : http

Find File
# cd /Media/(if using Fedora CD)
# ls | grep ( using for grabbing file only)

Install
# yum install httpd (if there is NOT http in fedora packages)
# rpm –ivh (if there is http in fedora packages)

Check Status
# rpm –q httpd

Up service
# service httpd status – check status
# service httpd start – start service
# service httpd restart – restart service
# service httpd stop - stop service

Configuration File
# vim /etc/httpd/conf/* (httpd.conf)

Parameter : Null

Additional info :

•SELinux turn off
# vim /etc/selinux/config
- set selinux = disabled (reboot pc after set)

•iptables (firewall) turn off
# service iptables stop
(Also can set by using command #setup service tool)

•Uninstall httpd # yum uninstall httpd
# rpm –e httpd

•Data file located at /var/www/html

No comments:

Post a Comment