Get AWSTATS to work with ISPCP 1.0.3 on CentOS 5.4 - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: System Setup & Installation (/forum-32.html) +--- Thread: Get AWSTATS to work with ISPCP 1.0.3 on CentOS 5.4 (/thread-8840.html) |
Get AWSTATS to work with ISPCP 1.0.3 on CentOS 5.4 - rexsham - 12-21-2009 03:59 AM I have followed the documentation in this website and I cannot get my AWSTATS working on CentOS 5.4. When using "perl ispcp-setup" to setup the database and other things, even I say Yes when the script ask if I want to install AWSTATS, I will still get an "Error 401" when I access AWSTATS at the User panel. I found that even I have run Code: yum install `cat ./docs/CentOS/centos-packages` Line 23 "alias /awstatsicons "usr/usr/share...." " and Line 37 "ScriptAlias /awstats "/usr/share/awstats/..." of /etc/httpd/vhosts/01_awstats.conf Then I go to website of awstats and downloaded http://prdownloads.sourceforge.net/awstats/awstats-6.95.tar.gz Here is the setup process: 1. mkdir /usr/share/awstats 2. Untar the downloaded file and copy the folders "docs", "tools", "wwwroot" to folder /usr/share/awstats/ (docs and tools are optional) 3. Edit /etc/httpd/vhosts/01_awstats.conf Replace Code: Line 23 "alias /awstatsicons "usr/usr/share...." " Code: Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/" Replace Code: Line 37 "ScriptAlias /awstats "/usr/share/awstats/..." Code: ScriptAlias /awstats "/usr/share/awstats/wwwroot/cgi-bin/awstats.pl" Replace Code: Line 39 <Directory /usr/share/awstats/> Code: <Directory /usr/share/awstats/wwwroot/cgi-bin> 4. Restart apache with /etc/init.d/httpd restart 5. Try accessing awstats in User Panel again, it works! I think the setup config files (/configs/centos/ispcp.conf) of the CentOS config should better be modified to match the file paths of some RPMs or yum packages of awstats so that installation will be easier. I suggest the awstats part should be like this so that people will know where to put the awstats engine files: AWSTATS_CACHE_DIR = /var/lib/awstats AWSTATS_CONFIG_DIR = /etc/awstats AWSTATS_ENGINE_DIR = /usr/share/awstats/wwwroot AWSTATS_WEB_DIR = /usr/share/awstats/wwwroot/cgi-bin AWSTATS_ROOT_DIR = /usr/share/awstats/wwwroot AWSTATS_GROUP_AUTH = statistics The reason for adding wwwroot is that it matches the folder name of tar and zip packages of awstats and users will know they can copy those files there without thinking what files should be in /usr/share/awstats/. A Documentation on "HOW to install awstats correctly" should also be in the DocuWiki. A function without documentation just makes people confused. |