Difference between revisions of "Apache"

From Christoph's Personal Wiki
Jump to: navigation, search
 
(External links)
Line 17: Line 17:
 
==External links==
 
==External links==
 
*[http://httpd.apache.org/ official website]
 
*[http://httpd.apache.org/ official website]
 +
*[http://www.workingwith.me.uk/articles/scripting/mod_rewrite/ mod_rewrite, a beginner's guide (with examples)]
  
 
[[Category:Technical and Specialized Skills]]
 
[[Category:Technical and Specialized Skills]]
 
[[Category:World Wide Web]]
 
[[Category:World Wide Web]]

Revision as of 02:03, 13 January 2008

see: LAMP for details on installing Apache.

Error log report

  • Below is a very simple, quick way to check for (the last 100) errors in your httpd setup:
tail -100 /var/log/httpd/error_log |cut -d']' -f 4-99 |sed -e "s/, referer.*//g"|sort|uniq
  • Search for all errors:
cat /var/log/httpd/error_log |cut -d']' -f 4-99 |sed -e "s/, referer.*//g"|sort|uniq

Note: To monitor the significance, add '-c' to the uniq command, which will find you a count of the number of each error.

Configuration management

apachectl configtest

Updating modules

  • Force CPAN to produce a list of all the modules that have updates and update them:
/usr/bin/perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'

External links