Apache Web Server Setup


load the Apache RPM, If not installed

    • ex.: rpm -i <package name>
    • ex.: rpm -qa (to show all installed packages)
    • ex.: rpm -e <package name> (to remove a package)

look for the package, If it existed

    • ex.: $ ls *apache*

running the Daemon

    • make sure that httpd is running on service 3 and 5, service 4 is optional, to do just that do the following;

            ex.:  [root] $ chkconfig --level 3 httpd on

                   [root] $ chkconfig --level 5 httpd on

                   [root] $ chkconfig --list httpd

 

run the startup script, If the daemon is not running, check if the script is still there and it's location is 

    • /etc/init.d/httpd

check the daemon for it's status

    • [root] $ httpd &
    • [root] $ ps -Chttpd