> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://krystal-dev.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to view AWStats without logging into cPanel

AWStats is a log analyser that can be accessed via your hosting account's cPanel to view your hosting access logs graphically.

![](https://storage.crisp.chat/users/helpdesk/website/862d8c09b799480/1e574688-e28f-4ec9-b8cb-98329f_pwqxkq.png)

It is, however, also possible to have your stats visible on a web page, so they can be viewed without logging in to cPanel.

|| This is an advanced topic. If it doesn't work out, then please re-read the instructions and make sure you have followed them correctly. Your raw stats are normally stored in your home-directory/access-logs directory.

1.  We strongly recommend you [create a subdomain](https://krystal.help/domains/understanding-primary-alias-or-parked-addon-and-sub-domains#add_a_new_site_using_an_existing_domain_sub_domain) (e.g. **stats**.mydomain.com) to host your stats website. Make a note of the physical path of the virtual root for your subdomain. This will be something like `public_html/subdomain/`
    
    ![](https://storage.crisp.chat/users/helpdesk/website/12e1a3206e952900/163414ea-4083-4603-a8d9-0754f4_1movzd7.png)
    
    If you wish to place your AWStats in your cPanel's primary domain then the physical path in your home directory will be just `public_html/`
2.  Download the latest stable release of [AWStats from SourceForge (external link opens in a new window)](https://awstats.sourceforge.io/).
3.  Extract the downloaded file locally.
4.  Upload the extracted `cgi-bin` and `icon` directories into the virtual root of your domain. If you were installing AWStats into the public_html/ folder it should end up looking something like this once you have finished copying the files and directories:

``` └── public_html ├── cgi-bin │ ├── awdownloadcsv.pl │ ├── awredir.pl │ ├── awstats.model.conf │ ├── awstats.pl │ ├── lang │ ├── lib │ └── plugins └── icon ├── browser ├── clock ├── cpu ├── flags ├── mime ├── os └── other```

1.  In the uploaded `cgi-bin` directory [set the file permissions](https://krystal.help/cpanel/using-c-panel-file-manager#setting_file_and_directory_permissions) for `awredir.pl` and `awstats.pl` files to 755
2.  Download a copy of the existing cPanel AWStats config file from your home directory at tmp/awstats/awstats.**mydomain**.conf (replace **mydomain** with your own domain name to determine what yours is called).  
    (For **https** **stats** use the folder tmp/awstats/**ssl**/awstats.mydomain.conf)
    
    ![](https://storage.crisp.chat/users/helpdesk/website/9226f74d96583800/ece5199b-73f9-42da-b609-9c9002_18ungf3.jpeg)
    
    Edit this file and look for the line beginning with DirIcons, which probably looks like this:  
    `DirIcons="/images/awstats"`  
    Just change this to:  
    `DirIcons="/icon"`  
    Then, save the file, and upload it to the `cgi-bin` directory, overwriting the existing one.
3.  You should now be able to browse to your stats at  
    https://**stats.mydomain.com**/cgi-bin/awstats.pl?config=**mydomain**  
    Replace **stats.mydomain.com** with your stats domain name (e.g. stats.mydomain.com if you created a subdomain, or just mydomain.com if you elected to install in /public_html)  
    Replace **mydomain.com** on the end with the domain the stats relate to.

* * *

* * *