• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Web Hosting Resource Kit

Web Hosting, Web Hosting Reviews & Virtualization

  • Contact
  • About Us
  • Privacy Policy

This post may contain affiliate links. If you use these links to buy something we may earn a commission. Thanks.

Apache Webserver – A quick tutorial for new Admins

January 12, 2005 By Christoph Puetz Leave a Comment

  • Tweet
  • Sumo
  • Tweet

Apache Webserver – A quick tutorial for new Admins 

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

Related posts:

  1. Apache HTTP Web server configuration Tutorial
  2. Upgrade To APACHE 2.0 Web Server
  3. Quick Cpanel/WHM/Server Troubleshooting
  4. How to remove or disable mod_evasive from Apache Web Server?
  5. What is Mod_Security (on cPanel server)?
  6. How to rotate your Apache Log Files?
  7. Linux Tutorial: How to change the IP ADDRESS on a Linux machine

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Categories

  • Business Management
  • Editors Column
  • Hosting Customers
  • Interviews & PR
  • Marketing/Advertising
  • Online Marketing/SEO
  • VMWare
  • Web Host Startup
  • Web Hosting
  • Web Hosting Reviews

Pages

  • About Us
  • Contact
  • Disclosure Policy
  • Privacy Policy
  • Sitemap
  • Terms of Service
  • Welcome to Web Hosting Resource Kit

Copyright Webhostingresourcekit.com© 2022 · Log in