View Single Post
  #2  
Old 23rd October 2010, 22:34
linus3x linus3x is offline
Junior Member
 
Join Date: Oct 2010
Posts: 16
Thanks: 2
Thanked 2 Times in 2 Posts
Default Graphic Goodness!

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

Last edited by linus3x; 23rd October 2010 at 22:36. Reason: fixed the config.php path
Reply With Quote