toma1708

Active Member
Aug 30, 2001
31
0
306
Hi,

Does somebody know what should I do for a client to allow him to visualize Webalizer Stats without logging into CPanel ?

Thank you.

Catalin
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
Steps to access stats in cPanel without going through the control panel, and without (at your discretion) using a password.

Create a symlink in your public folder (/public_html) to the particular stat page you want to use. This example uses webalizer and a link called stats:

ln -s /home/yourusername/tmp/webalizer stats

/home/youruser/tmp - chmod to 755
/home/youruser/tmp/webalizer - chmod to 755

Call up http://www.yourdomain.com/stats/index.html - this will pull up the webalizer stats for the site.
 

corponramp

Registered
Nov 12, 2002
1
0
151
did not work for awstats

Hello,

I tried this for awstats but all I am getting is a directory page:

'Index of /stats'

Here is all I did:

Create a symlink in your public folder (/public_html/stats) to the particular stat page you want to use:

ln -s /home/myusername/tmp/awstats

/home/myuser/tmp - chmod to 755
/home/myuser/tmp/awstats - chmod to 755

But when going to the following page does not bring up awstats:

http://www.mydomain.com/stats/index.html

Any help would be appreciated.

Peter
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
This particular method is for webalizer only. Symlinking for AWStats in this manner will not work.
 

wozza

Member
Feb 14, 2002
8
0
301
webalizer stats viewed outside cpanel

Hi
awstats cant really be done with a symlink , cause the images are stored elsewhere and its too much involved to do that.

webalizer stats is easy to link into a directory in a users web site, as the previous person said .
however I think that youre leaving off the link name.

what Ive done is create a stats directory in a users web directory
ie : cd /home/user/www
mkdir stats
cd stats
ln -s ../../tmp/webalizer webalizer
this creates a link called &webalizer& which you can link to in a index.html in the stats directory.
then cd ../
chown -R user:user stats
cd ../
chmod -R 0775 tmp

you can password protect the stats/ directory via the cpanel
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,576
9
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
Actually for awstats there is one way that works.

See http://stats.dgbaker.net/awstats.pl?config=dgbaker.net&lang=en

Create a subdomain called whatever.domain.com or do the following in the /home/username/www directory.

cd /home/user/www/whatever
cp /usr/local/cpanel/base/awstats.pl .
ln -s /usr/local/cpanel/base/images images
ln -s /usr/local/cpanel/3rdparty/bin/lib lib

The very big draw back is the copy of awstats.pl. If changes happen to the original then this one would need to be manually
updated.

Also the images part, because awstats looks for /images it must be at the top level directory.
 

PvUtrix

Well-Known Member
Mar 12, 2005
58
1
156
Ekaterinburg - Russia
cPanel Access Level
Root Administrator
dgbaker said:
Actually for awstats there is one way that works.

See http://stats.dgbaker.net/awstats.pl?config=dgbaker.net&lang=en

Create a subdomain called whatever.domain.com or do the following in the /home/username/www directory.

cd /home/user/www/whatever
cp /usr/local/cpanel/base/awstats.pl .
ln -s /usr/local/cpanel/base/images images
ln -s /usr/local/cpanel/3rdparty/bin/lib lib

The very big draw back is the copy of awstats.pl. If changes happen to the original then this one would need to be manually
updated.

Also the images part, because awstats looks for /images it must be at the top level directory.
If you server is using phpsuexec you also need to
chown username.username images
chown username.username lib
and
cd /home/username/www
chown username.username stats

to make it work if you're getting a 500 error.
 

spaceman

Well-Known Member
Mar 25, 2002
505
5
318
RickG said:
You may want to check out www.josheli.com/vox/. Great scripts for both AWStats and Webalizer that will accomplish what you want.
The php script looks good for awstats, but it requires that the cPanel username and password are hard-coded in the script. Putting the security issue to one side, hard coding this stuff means that if I update the password via cPanel/WHM then this script breaks. Presumably the same script could be modified to work such that the regular .htaccess-style username and password authentication is still required.
 

mikesouth

Member
Aug 10, 2005
20
0
151
Im not overly fond of this particular hack for the reasons above...does anyone have a webalizer script that will read through subdomains and create an index.html in subdomain/stats?