thewebhosting

Well-Known Member
May 9, 2008
1,199
1
68
If you simply wants to point /stats folder to /home/user/tmp/webalizer/ then you can simply create a symbolic link for /home/user/tmp/webalizer/.

You can use the below command to do it:

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

Arvy

Well-Known Member
Oct 3, 2006
139
10
168
Brazil
cPanel Access Level
Root Administrator
Twitter
I got the same 403 error:

cd /home/user/public_html
ln -s /home/user/tmp/webalizer/ stats

Works, but I still get an "access denied".

I think the problem is about user permitions. But I dont understant why, since both folders "public_html" and "tmp/webalizer" the owner is "user".

Any other ideas?
 

Arvy

Well-Known Member
Oct 3, 2006
139
10
168
Brazil
cPanel Access Level
Root Administrator
Twitter
Found

Found a solution. Sharing:

--------------

CPanel offers you the ability to check your website statistics with a program called webalizer. The problem with this system is that you are required to login via cpanel, and click through 2 diferent subsections in order to access them. This tutorial will guide you on the steps needed to make your webalizer statistics available via www.yoursite.com/stats/ .

Login to your hosting account via ssh. If you do not have ssh, ask your host to enable it. if they won't enable it, ask them to read this tutorial, and run through these directions yourself.

Navigate to your public_html directory by running the following command

cd public_html

Once there, type the following:

vi .htaccess

once that loads, hit your i key, and type the following:

Options +FollowSymLinks

Once that is done, hit your Esc (escape) key, and type the following:

:wq

This will write to the .htaccess file, and quit.

Next, run the following command

ln -s ~/tmp/webalizer stats

you can replace the "stats" part of that command with name you want to use in order to access your website statistics.

After that, run the following commands

chmod 755 ~/tmp
chmod 755 ~/tmp/webalizer

now you can access www.yoursite.com/stats/ to access your webalizer statistics.