Sanjoy Roy

[MCM, MCP, SCJP] – Senior PHP Programmer

Tag Archives: webalizer

Cpanel Webalizer statistics without cpanel login


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 http://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 http://www.yoursite.com/stats/ to access your webalizer statistics.

Enjoy

To view webalizer stats without login to cpanel


To view webalizer stats without login to cpanel do the following steps using shell :

1.First go to the public_html folder user :
# cd /home/username/public_html
e.g  cd /home/candylip/public_html/

2. Open .htaccess file. Add following code and save it:
Options +FollowSymLinks

You can edit the .htaccess file of the root store via vi editor.

3. Now create syblink for weblizer. Replace domainname.stats with name you want in order to access your website statistics. Change the owner to account user and permissions to 755.

#ln -s ../tmp/webalizer domainname.stats
chown username.username domainname.stats
chmod 755 ../tmp/webalizer

e.g:
#ln -s ../tmp/webalizer exclusiv.stats
#chown exclusiv.exclusiv exclusiv.stats
#chmod 755 ../tmp/webalizer

http://125.214.71.444/~exclusiv/exclusiv.stats