Cgi bin awstats pl config1/9/2023 ![]() I have been pulling my hair out all night long. then this process will be fully automated. PS if anyone figures the eventmanager script to add a cron please post it. I will post a generic skel file confirmed all the bugs are worked out. Save it as nfĩ.) chown user.psacln * -R where user is the domain userġ0.) create an /stats/index.html that will redirect to cgi-bin/ this was your users have an easy way to get to their stats.ġ1.) Test your install make sure that awstats works, then edit your index.html and nf file replace any instance of your domain name with this will fix all the paths etc.ġ6.) add /home/httpd/vhosts/domain/cgi-bin/ -config=/home/httpd/vhosts/domain/cgi-bin/nf -update >/dev/null 2>&1 to your cron have it run 55 * * * * for every hour and 55 to catch it before plesk does it’s nightly hiding of logs. Update the location of icon css, and js to /stats/js/ or where ever you put them. This I believe could be automated with the help of the event manager, but I haven't got there yet.ģ.) mkdir /home/httpd/vhosts/domain/httpdocs/statsĤ.) cp awstats/rm /home/httpd/vhosts/domain/httpdocs/stats/cgi-bin/ -rfĨ.) edit place your domain name in the correct places, tell it where to find the access_log etc. The only thing left to do is manually add a cron job that will parse the files for you, and update the stats. What they don't tell you is that the entire skelton structure is parsed and any time it comes across the tag it just replaces it with the domain name being installed.īasically I just created a domain in plesk and installed awstats, once that was installed I just tared up the dirs and uploaded it to plesk, now all domains have awstats enabled by default. ![]() I used the skeleton structure that is part of plesk. I finally figured out how to roll out awstats on each domain I deploy now. usr/bin/htpasswd -bm -c $ACCESS_FILE $WUSERNAME $PASSWORD usr/bin/htpasswd -bm $ACCESS_FILE $WUSERNAME $PASSWORD ![]() "/etc/awstats/awstats.# Add user/password to password file ![]() #echo "Enter aliases separated by space:" STAT_DIR="/home/httpd/vhosts/$DOMAIN/httpdocs/awstats"ĪCCESSLOGDIR="/home/httpd/vhosts/$DOMAIN/statistics/logs/access_log" conf file or the icons will not work properly.Odd, not letting me attach the script either, let me try posting it this way: Note: Please password protect the /cgi-bin folder so that only authorized users can access it (found under cPanel -> Security -> Password Protect Directories).įastDomain Suggests creating a subdomain such as and redirecting it to the above URL to make it easy to access, its also possible to alter the directory name where the icons are loaded, but make sure the folder path is defined properly in the.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |