INSTALLING APACHE ON CENTOS 6.4 – PART 2

IS THE SERVICE LISTENING?

  • Run the command lsof –i to see open ports; look for processes listening to port 80 (http)
    • #lsof  –i | grep http
  • Browse to http://localhost to see the default page
  • Examine the error log for clue
    • #/var/log/httpd/error_log
  • Verify no other process is listening on port 80
  • If SELinux is enabled, try disabling it

TESTING THE INSTALLATION

INSTALLATION FAILURES

  • Examine the error log for clue
    • #/var/log/httpd/error_log
  • Verify no other process is listening on port 80
  • If SELinux is enabled, try disabling it

INSTALLING APACHE ON CENTOS 6.4 – PART 1

 

PROCESS TO INSTALL APACHE

  • Install Apache on a standard linux installation
  • Serve a single site
  • Serve multiple sites with virtual hosts
  • Perform user authentication and access control
  • Setup a secure site (https)
  • Serve multiple sites with virtual hosts
  • Control logging and status reporting
  • Apache is in the CentOS repositories and is easy to install
    • #yum install httpd
  • The # prompt indicates that you need to do this as root
  • A number of dependencies will also be installed
    • #service httpd start
    • #chkconfig httpd on
  • This command ensures that the service will be started at boot time
  • This command starts the service immediately

INSTALLING APACHE

  • Apache is in the CentOS repositories and is easy to install
    • #yum install httpd
  • The # prompt indicates that you need to do this as root
  • A number of dependencies will also be installed

STARTING THE SERVICE

    • #service httpd start
    • #chkconfig httpd on
  • This command ensures that the service will be started at boot time
  • This command starts the service immediately