Web Hosting Forum - A Web Hosting community for Webmasters


Divi WordPress Theme

Author Topic: Apache Webserver - A quick tutorial for new Admins  (Read 2584 times)

0 Members and 1 Guest are viewing this topic.

Offline Tech

  • Junior Guru
  • **
  • Posts: 183
  • iTrader: +2/-0
    • View Profile
Apache Webserver - A quick tutorial for new Admins
« on: September 30, 2007, 03:19:18 PM »
Apache is one of the most commonly used web servers out there. If you are running your own cPanel server your websites will actually run on Apache. If you're new to administering a web server or just want to learn to keep your managed server under control without yelling for support each and every time it is useful to know some basic Linux commands for Apache. Unless specified otherwise - all commands listed need to be executed from the command line on your server.

How to start, stop or restart Apache (commands need to be executed from the command line)?

Restart: "/etc/rc.d/init.d/apachectl restart"

Stop: "/etc/rc.d/init.d/apachectl stop"

Start: "/etc/rc.d/init.d/apachectl start"

Where is the Apache httpd.conf file located?

"/etc/httpd/conf/httpd.conf"

How many Apache processes are running on your server at any given time?

"ps auwx |grep httpd |wc -l"

Where is the Apache error log located on the server?

"/var/log/httpd/error_log"

Where is the Apache status log file located on the server?

"/var/log/httpd/access_log"

HTTP Codes

200 = Successful Request

304 = Successful request, but the web page requested hasn't been modified since the current version in the remote web browser's cache.

401 = Unauthorized access. Someone entered an incorrect username / password on a password protected page

403 = Forbidden. File permissions prevents Apache from reading the file.

404 = Page Not found. The page requested doesn't exist.

500 = Internal Server Error

This article can be published by anyone as long as a live back link to http://www.webhostingresourcekit.com is provided. (this note can be removed as long as a link from the author's resource box is provided)
« Last Edit: January 01, 1970, 05:30:00 AM by Tech »

Divi WordPress Theme
Tags:
 

Related Topics

  Subject / Started by Replies Last post
0 Replies
3828 Views
Last post August 29, 2007, 02:34:12 AM
by Tech
0 Replies
3767 Views
Last post September 30, 2007, 02:43:25 PM
by Tech
2 Replies
4733 Views
Last post October 22, 2008, 09:43:00 AM
by HRamesh
0 Replies
1702 Views
Last post March 17, 2011, 09:16:19 PM
by EvaBrown
1 Replies
1283 Views
Last post September 17, 2014, 10:57:46 AM
by WebhostingTalk