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.
It have been tested on a Mandrake 8.2/9.1/10 and a RedHat 7.2/8.1 . You need to log as root.
Default location is :
- /var/www/html/ for webserver root
- /var/www/cgi-bin/ for cgi-bin and
- /var/logs/httpd/ for logfiles
Default logfile format is ECLF.
* First Step : Install Fly
You'll need first to install the fly RPM 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 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. There is no RPM package available
for these modules so you'll have to download and install them.
- 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)