RPM installation



If you are running Linux, this is the easy way to install the package. W3Perl RPM have been built on a Mandriva but it should also works with any distributions supporting rpm tools. You need to log as root.

Default location is :

  Mandriva CentOS
Webserver /var/www/html/ /var/www/html/
Cgi /var/www/cgi-bin/ /var/www/cgi-bin/
Logfiles /var/logs/httpd/ /var/logs/httpd/

Default logfile format is ECLF.

The default configuration file is config-mdv.pl

* First Step : Install Fly

You'll need first to install the fly or flydraw RPM package in order to satisfy w3perl dependency.
rpm -ivh fly-1.6.5-1mdk.i686.rpm
Default location for the fly tool is /usr/local/bin

* 2nd Step : Install W3Perl

Once Fly or Flydraw have been installed, just type :
rpm -ivh w3perl-<version>-<subversion>mdv.noarch.rpm where <version> is the current release number.
or rpm -Uvh w3perl-<version>-<subversion>mdv.noarch.rpm if you want to upgrade from a previous installation.

Files will be installed to the proper location with the right path. Files Group/Owner are apache (httpd user). A default configuration file (config-mdv.pl) is provided so the scripts are ready to run. But some fields need to be edited like your server domain name.

So if you want to modify the provided configuration file or create a new one, use the admin interface (http://localhost/w3perl/admin/)

RPM are build as relocatable so installation can be done in another location.

If you need later to remove these packages, just use rpm -e fly-1.6.5-1mdk and rpm -e w3perl-<version>-<subversion>mdv.

* 3rd Step : Configuration

W3Perl need a configuration file to run, the RPM package provide some. Go to the administration interface (http://localhost/w3perl/admin/) and choose the one you want to alter (config-mdv.pl is for mandriva users but should be useful for others). Of course, you still can create one by yourself.
That's all !

* 4th Step : Optional software

Geo-IPfree or Geo-IP perl module allow geographical mapping from IP addresses. Install package geoip and perl-Geo-IP. If you can't install these packages, you can them download them and install them manually :

  • GeoIP : You need first to install the GeoIP C Library (configure, make, make install) then the Geo-IP perl module (perl Makefile.PL, make, make test, make install)
  • Geo-IPfree : don't seems to be updated very often but don't rely on a company tool (perl Makefile.PL, make, make test, make install)
  • HTMLDoc to allow PDF output
  • Perl MIME::Lite module to allow report to be send by email

See the plug-in page to get more informations.