Apache Server

Posted: August 7, 2013 in Uncategorized
  • Packages: httpd, httpd-devel, httpd-manual
  • Daemon: /usr/sbin/httpd
  • Script: /etc/init.d/httpd
  • Ports: 80(http), 443(https)
  • Configuration: /etc/httpd/*, /var/www/*
  • · Related: system-config-httpd, mod_ssl

Varify or Install packages with:
# rpm -q httpd
# rpm -ivh httpd-*
# yum install httpd
Use the chkconfig command to configure Apache to start at boot:

# chkconfig httpd on

Use the httpd<code> init script in the <code>/etc/init.d directory to start,stop, and restart Apache after booting:

# /etc/init.d/httpd start
# /etc/init.d/httpd stop
# /etc/init.d/httpd restart

You can test whether the Apache process is running with

# pgrep httpd
# service httpd status
  1. fazal says:

    With the help of this above information my doubts are clear and now i am able to configure http server quickly

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s