Web Hosting Talk







View Full Version : public stats


Goldfiles
08-16-2002, 05:52 PM
This question may be too vague. But, how do I make my stats public? I use CPanel 4.9. Is there a certain directory that I use?

If any more tech info is needed, just ask.

Haze
08-17-2002, 12:58 AM
I have a couple of clients that have requested this so what I did was make a cron to do the following:


#!/bin/bash
rm -Rf /home/username/public_html/webstats/
cp -R /home/username/tmp/webalizer/ /home/username/public_html/webstats/
chown username:username /home/username/public_html/webstats
chmod 655 /home/username/public_html/webstats


It runs every 6 hours for my client. You need to, of course, run this as root. If you don't have root, see if your host will do it for you.