How do I set up Urchin to work with Plesk

How do I set up Urchin to work with Plesk?

The Plesk software package is a web hosting automation solution by SWsoft. It allows a server administrator to set up new websites, email accounts, and DNS entries through a web-based interface. Other services managed by Plesk include MySQL and PostgreSQL databases, Tomcat Java server, ColdFusion server, as well as CounterStrike and Battlefield 1942 game servers. The Plesk package can be used to implement a log rotation process for the web server.

When working with the Unix version of Plesk, you should be aware of a few things:

  • Apache is usually set up to log in CLF (common log format). This needs to change if using the UTM tracking method
  • By default, Plesk is set to rotate the logs based on file size, not date. The default size is 2 GB which should be lowered for performance reasons.
  • The path to the log files on a Plesk server is: /home/httpd/vhosts/domain_name/statistics/logs
  • The current log file that is active is named access_log
  • The log file that was previously processed is access_log.processed
  • Most people usually have Urchin process all log files using logs/*. MAKE SURE THAT LOG TRACKING IS TURNED ON.
  • Plesk can be configured to compress the log files
  • Plesk begins processing log files at 04:02 daily. I then sequentially processes all the logs for all the domains.