![]() |
Installation sur des serveurs virtuels (Apache) |
If you need to install w3perl for each of your virtual hosts, you only need to install the package once (easier for upgrade !). You'll need to make first a master installation on one server and then use the installation described here for others.
The first step is to install a master installation of w3perl. If you are using an Apache server, just use 'install.pl -a'. If it fails, edit $pathcgi and $pathw3perl and run it. See specific documentation if you need more help.
If the script fail to find your Apache configuration file, you could load it from command line via the -j flag.
Once the stats completed, you can choose to add the cron-w3perl.pl script in your crontab. You need to call the 'crontab -e' command from telnet. A text window will appears, then enter your crontab entry for cron-w3perl.pl (something like 01 00 * * * * /<your_path>/cron-w3perl.pl -e). Then check with 'crontab -l' your entry is valid. The '-e' flag will run all scripts in a incremental way (saving CPU), 01 00 means the scripts will be launch at 00 h 01 the night. You need to run this script only ONCE a day with this flag. If you want to get more stats update (every hour), don't use the '-e' flag. Use 'cron-w3perl.pl -b' to see actual time launch and edit the script if you need changes. Default should be ok for most people. Then add cron-w3perl.pl to your crontab without the '-e' flag. Client (virtual host) don't need to specify a configuration file to launch their own cron-w3perl.pl script but webmaster should specify which one they want to run via the '-c' flag (if no flag, default is config.pl)
|
|
How it works |
Step 1 : get pwd from current directory (-u flag)
Step 4 : Copy generic config.pl file to config-<web>.pl Step 5 : Alter config-<web>.pl (with $virtual_web, $virtual_web_log, $virtual_www, $virtual_web_cgi) Step 6 : Copy the cron-w3perl.pl to your virtual web directory (-u flag) PS : The virtual web name should be a litteral one or the script will not be able to compute your local domaine name. |
![]() |