HP Open Source Middleware Stacks Blueprints: LAMP Architecture on HP ProLiant BladeSystem Servers on SLES
1. Verify that the Webalizer packages are installed by entering the following command:
# rpm –q | grep webalizer
If the package is not installed, locate the RPM package on the Linux distribution media and
install it.
2. Modify the Webalizer configuration file /etc/webalizer.conf by adding the following
lines:
LogFile /var/log/apache2/access_log
OutputDir /srv/www/htdocs/webalizer
3. Restart the Apache server by entering the following:
# /etc/init.d/apache2 restart
4. Run the Webalizer program to generate a report:
# webalizer
Verify that the server status configuration is correct by visiting the following website:
http://<YOUR_WEB_SERVER_IP>/webalizer
Figure 4 shows an example of a Webalizer usage report web page.
Figure 4 Webalizer Usage Report
Using Apache Virtual Host Support
A virtual host enables more than one website running on a single server. For example,
www.website1.com and www.website2.com can be hosted on the same website.
The most widely used virtual host is name-based, which means that multiple names are running
on one IP address. Since users provide the hostname as part of the URL, they are not aware that
various websites are using the same IP address.
The following steps illustrate the use of virtual hosting:
1. To configure virtual hosting, you must resolve two host names to the same IP address. One
method is to edit the /etc/hosts file of the client system by adding the following line:
14