Introduction
Some cPanel users want to have their Webalizer stats available without cPanel access.
Please note it is highly recommended that password protection be used so this is not viewable by everyone publicly.
More on password protection can be found at Can I password-protect a directory using the cPanel interface?
Procedure
In the example provided, the cPanel account user will be cpuser
, and the user home is /home/cpuser/
.
As the account user, run the following command to create a symlink to the webalizer
directory:
ln -s /home/cpuser/tmp/webalizer /home/cpuser/public_html/webalizer
Then log into cPanel as the user and use Directory Privacy to password protect the /home/cpuser/public_html/webalizer
directory.
If the user's main domain is cpuser.com, you can visit http://cpuser.com/webalizer. When prompted for a user and password, log in, and then Webalizer will be viewable.
Please note if FollowSymLinks is disabled, it will need to be enabled again in the domains .htaccess file.
Example path:
/home/cpuser/public_html/.htaccess
The line to add:
Options +FollowSymLinks