![]() |
Virtual Host Installation (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.
Your virtual host doesn't need to have a cgi directory to be able to install w3perl.
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)
|
|
Examples |
|
![]() |