This worked great! Thanks a ton!
Here are my notes picking up from Step 11:
# 11. Set the permissions on every file/folder inside the jawstats directory
# to whatever you feel is appropriate for your server configuration.
# These will be preserved when it copies.
# I suggest the following:
# everything chown root:root
# All directories chmod 555
# All files chmod 444 except for config.php I made 644
# This way your customers sites can read them but not change them.
Here’s what I did:
Copy the jawstats folder over to the server using FTP. I dropped the jawstats folder into the client1/web1 directory.
Use the cp –r command to copy the directory down to /usr/local/ispcjawstats/:
Code:
cp -r /var/www/clients/client1/web1/jawstats /usr/local/ispcjawstats/jawstats
# everything chown root:root
Code:
chown -R root:root /usr/local/ispcjawstats/jawstats
# All directories chmod 555
Code:
find /usr/local/ispcjawstats/jawstats -type d -exec chmod 555 {} \;
# All files chmod 444 except for config.php I made 644
Code:
find /usr/local/ispcjawstats/jawstats -type f -exec chmod 444 {} \;
chmod 644 /usr/local/ispcjawstats/jawstats/config.php
When you’re done, remember to delete jawstats from the client's website.
Code:
rm -r /var/www/clients/client1/web1/jawstats
To run it on just one site (adjust the bolded items as needed):
Code:
/usr/local/ispcjawstats/ispcjawstats.sh -config=yourdomain.com -update -lang=en -awstatsprog=/usr/lib/cgi-bin/awstats.pl -dir=/var/www/clients/client1/web1/web/stats
Rename the main file:
Code:
cp /var/www/clients/client1/web1/web/stats/awstats.yourdomain.com.html /var/www/clients/client1/web1/web/stats/index.html
Then to see it:
Code:
http://www.yourdomain.com/stats/index.php
Recent comments
19 hours 45 min ago
1 day 5 hours ago
1 day 6 hours ago
1 day 9 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 16 hours ago
2 days 2 hours ago
2 days 7 hours ago
2 days 8 hours ago