apache

mod_status

in

The Status module allows a server administrator to find out how well their server is performing. A HTML page is presented that gives the current server statistics in an easily readable form. If required this page can be made to automatically refresh (given a compatible browser). Another page gives a simple machine-readable list of the current server state.

The details given are:

  • The number of worker serving requests
  • The number of idle worker
  • The status of each worker, the number of requests that worker has performed and the total number of bytes served by the worker (*)
  • A total number of accesses and byte count served (*)
  • The time the server was started/restarted and the time it has been running for
  • Averages giving the number of requests per second, the number of bytes served per second and the average number of bytes per request (*)

Apachetop

ApacheTop is a curses-based top-like display for Apache information, including requests per second, bytes per second, most popular URLs, etc.

Installation
Install the prerequisite libraries:

yum -y install readline-devel ncurses-devel

Download the source code for apachetop:
cd /extra/src
wget http://www.webta.org/apachetop/apachetop-0.12.6.tar.gz
tar zxf apachetop-0.12.6.tar.gz
cd apachetop-0.12.6

Configure and build it. You can optionally include a default log file to parse with a --with-logfile=/path/to/apache/logfile.
./configure
make
make install

Usage

Qmailadmin with Apache

Configuring Qmailadmin to work with the Apache webserver

Create the directories to hold the webmail and Qmailadmin related web files:

mkdir -p /var/websites/mail/htdocs
mkdir -p /var/websites/mail/cgi-bin
mkdir -p /var/websites/mail/logs

Assuming you are using Apache, installed as per this site's install guide:

  • Without ezmlm:

    cd /extra/src/qmailadmin-1.2.12
    ./configure \
    --enable-cgibindir=/var/websites/mail/cgi-bin \
    --enable-htmldir=/var/websites/mail/htdocs \

Web Stats

Study the traffic to your website with a web stats analysis program.

Two popular Open Source packages for analysing web server log files are Awstats and Webalizer.

There is a detailed comparison at the Awstats website.

Webserver configuration

Apache and Lighttpd instructions for configuring Drupal virtual hosts.

Apache Virtual Host Configuration
Enable the virtual host config file in /usr/local/apache2/conf/httpd.conf by uncommenting it:

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

Edit /usr/local/apache2/conf/extra/httpd-vhosts.conf and add an entry for your new Drupal install:

ServerName www.domain.com
#ServerAlias *.domain.com
DocumentRoot /var/websites/projectname/drupal-5.10

Options Indexes FollowSymLinks
AllowOverride All

Apache config

Configuration instructions for serving Trac with Apache.

TracModMython wiki page with detailed Apache instructions.

Prerequisites
Apache requires mod_python to be installed in order to run Trac.

Simple Configuration
Edit /usr/local/apache2/conf/httpd.conf and add the following to instruct Apache to redirect any URLs starting with "/trac/" to Trac:

SetHandler mod_python
PythonInterpreter main_interpreter

mod_python

Mod_python is an Apache module that embeds the Python interpreter within the server. With mod_python you can write web-based applications in Python that will run many times faster than traditional CGI

Installation
Download the latest version of mod_python (3.3.1 at time of writing). Apache 2.2.11 had issues with mod_python. Downloading the latest from Apache's svn repo worked better...

Syndicate content