Current time: 05-04-2024, 09:16 PM Hello There, Guest! (LoginRegister)


Post Reply 
Get AWSTATS to work with ISPCP 1.0.3 on CentOS 5.4
Author Message
rexsham Offline
Newbie
*

Posts: 6
Joined: Dec 2009
Reputation: 0
Post: #1
Get AWSTATS to work with ISPCP 1.0.3 on CentOS 5.4
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`
, where "awstats" is already inside the package list, the awstats engine files are not put into the folders defined on the
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/awsta....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...." "
with
Code:
Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/"

Replace
Code:
Line 37 "ScriptAlias /awstats "/usr/share/awstats/..."
with
Code:
ScriptAlias /awstats "/usr/share/awstats/wwwroot/cgi-bin/awstats.pl"

Replace
Code:
Line 39 <Directory /usr/share/awstats/>
with
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.
12-21-2009 03:59 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)