Apache

Web server

Install Tomcat on Fedora or CentOS

To install tomcat5 (or tomcat 6) on Fedora 14 or CentOS,

  1. Run yum install tomcat5 tomcat5-webapps tomcat5-admin-webapps (or to install tomcat6 run yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps )
  2. Your configuration files are in /etc/tomcat5. (or /etc/tomcat6)

Apache Log File Tools

AWStats Logfile Analyzer

I wanted to report on basic activity on my web server so I found and installed AWstats, which I really like.

Importing Apache logs into SQL

Later I wanted to see more details so I started looking for a way to convert Log file entries to database tables.  I found the following on goolge and listed them in the order I think will work best on linux.

Speed up web site

What is Google Page Speed?

Page Speed is an open-source Firefox/Firebug Add-on. Webmasters and web developers can use Page Speed to evaluate the performance of their web pages and to get suggestions on how to improve them.

NSS_Initialize failed when starting Apache httpd

I got the following error in /var/log/httpd/error_log when trying to start httpd on Fedora11 64 bit:

NSS_Initialize failed. Certificate database: /etc/httpd/alias.
SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED

Which led me to discover the file /etc/httpd/install.log

############################################
Generating new server certificate and key database.
############################################
/usr/sbin/gencert: line 91: /usr/bin/certutil: No such file

I found I needed to install certutil by typing

yum install nss-tools*

Then I ran

/usr/sbin/gencert /etc/httpd/alias

Lucene Search Setup

Download and install Search Lucene Module for Drupal6

Note: this requires you have php-mbstring installed in apache.

I like to add some stop words like the following:

Varnish commands

Setting up Varnish

Varnish has a set of command line tools and utilities to monitor and administer Varnish. These are:

How to Improve Web Performance and Scalability using Varnish

Varnish Cache

Varnish is a state-of-the-art, high-performance HTTP accelerator. It uses the advanced features in Linux 2.6.  Varnish supports Edge Side Includes, ESI. Edge side includes allow you to break your pages into smaller pieces, and cache those pieces independently.

Default start up

How to setup SSL secure pages

On Linux install package

yum install mod_ssl
openssl genrsa -out ca.key 1024
openssl req -new -key ca.key -out ca.csr
openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt

How to setup awstats-Web Analyser

AWSTATS is an Apache log file analyzer that will show details about traffic to your web sites.

Setting up awstats guide

now run the awstats.pl script:
% cd /usr/share/awstats/wwwroot/cgi-bin/
% sudo perl awstats.pl -update -config=mysite

If all goes well, you should see something along the lines of:
Found 0 dropped records
Found 0 corrupted records,
Found 150 old records,
Fount 50 new qualified records.

…at the end of the update script output.

So, to do this with multiple domains, just repeat the steps above, making sure to make the appropriate changes to each domain…

This will hopefully create a config file fore each of your domains in /etc/awstats with the name awstats.web3us.com.

How to setup Apache

Here are the tips I learned about configuring Apache

How to Guides

I wanted to use the web to capture all the tips and tricks I learned setting up an web sites including open source content managment system (CMS).  I have also added some other useful how to guides for phones, tablets, video, and backup power.

Drupal specific how to guides are in their own section here.

Syndicate content