![]() |
use jawstats / mawstats with ispconfig
Its 4:45AM so blame any bugs on lack of sleep ;)
The script is designed to be called by ispconfig cron as if it was the awstats_buildstaticpages.pl. No changes are required to ispconfig other than editing the awstats_buildstaticpages.pl setting in the panel. This setup works with ispconfig 3.0.3, just follow the directions that are documented in the script and you should have a painless transition from static awstats to jawstats goodness. This is assuming you have awstats setup and working with ispconfig 3 already. Enjoy! Code:
#!/bin/bash |
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/jawstatsCode:
chown -R root:root /usr/local/ispcjawstats/jawstatsCode:
find /usr/local/ispcjawstats/jawstats -type d -exec chmod 555 {} \;Code:
find /usr/local/ispcjawstats/jawstats -type f -exec chmod 444 {} \;Code:
rm -r /var/www/clients/client1/web1/jawstatsCode:
/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/statsCode:
cp /var/www/clients/client1/web1/web/stats/awstats.yourdomain.com.html /var/www/clients/client1/web1/web/stats/index.htmlCode:
http://www.yourdomain.com/stats/index.php |
Update to the Script
OK - what we discovered on our system was: This script ran great the first time then after that, it never updated with new data. We kept seeing stats from the initial run of the script, but no updates.
After debugging a bit, I found that this script wasn't copying over the two awstats files once awstats.pl had finished building them. I added the following line to the script and things are updating as they should: Code:
[...]This worked for us - your mileage may vary! :) |
awesome work, thanks a lot.
there is a problem in ispconfig so that awstats only create a field from 0 - 0:30 http://bugtracker.ispconfig.org/inde...s&task_id=1395 this is fixed in ispconfig 3.0.3.1 to fix this in jawstats add/change some lines to the script: Code:
[...]Code:
[...] |
| All times are GMT +2. The time now is 18:52. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.