Awstats "public"


rgdot

Recommended Posts

I am looking to give access to Awstats of an add-on domain (on shared hosting but already have SSH access) without giving access to cpanel. There are a couple of old scripts on the web but neither seem secure (they use cpanel login on external config files, etc).

 

Is there a secure way to do this, may be a password protected directory to view the Awstats reports? Is symlink possible and can it be on password protrected link? if so would appreciate help.

 

Note: I put public in " " because I am giving access to only one person only.

 

Thanks

Link to comment
Share on other sites

It's not going to be easy but one idea (I haven't tried it) would be installing your own awstats. cPanel stores the data files themselves at /home/yourusername/tmp/awstats . You could load those from your own installation and just password protect that installs directory.

Link to comment
Share on other sites

  • 3 weeks later...

I did this a couple of weeks ago but forgot to come back and post. I found a solution - via google, not my own solution - that works by uploading relevant Awstats files and then changing a path, much like what Tony described above.

 

Download Awstats from awstats.sourceforge.net

Upload cgi-bin (this can be renamed after) and icon folders in the download to root of your site

Change awredir.pl and awstats.pl in the folder uploaded to 755

Go to temp/awstats in cpanel and download the conf file for your domain from there (awstats.yourdomain.com.conf)

Open it and change DirIcons value to DirIcons="/icon/" and upload it to the cgi-bin (or renamed) folder uploaded earlier

Awstats can now be accessed www.yourdomain.com/cgi-bin/awstats.pl?config=yourdomain.com 

without needing cpanel login, be sure to use cpanel to password protect the cgi-bin (or renamed) folder.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...