rgdot Posted February 10, 2015 Report Share Posted February 10, 2015 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 Quote Link to comment Share on other sites More sharing options...
Tony Posted February 10, 2015 Report Share Posted February 10, 2015 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. Quote Link to comment Share on other sites More sharing options...
rgdot Posted February 10, 2015 Author Report Share Posted February 10, 2015 Thanks Tony, will try that and return with any questions Quote Link to comment Share on other sites More sharing options...
Tony Posted February 11, 2015 Report Share Posted February 11, 2015 Thanks Tony, will try that and return with any questionsFeel free to update this topic if it works as well. I'm sure others would be interested in knowing this method would work. Quote Link to comment Share on other sites More sharing options...
rgdot Posted March 5, 2015 Author Report Share Posted March 5, 2015 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.