Viewing AWStats Without Logging into cPanel (Firstserv Guide)
AWStats is a web analytics tool available in cPanel that provides detailed insights into your website traffic. Normally, it’s accessed via cPanel—but you can also make it available through a web page for easier access.
⚠️ Important
- This is an advanced configuration
- Incorrect setup may cause errors
- Your raw statistics are stored in:
/home/username/access-logs
Recommended Setup
To keep things organised, it’s best to create a dedicated subdomain for your stats.
✅ Example:
stats.yourdomain.com
Directory Structure
Your subdomain will point to a directory such as:
/public_html/stats/
👉 If installing on your main domain, use:
/public_html/
Step 1: Download AWStats
- Download the latest version of AWStats from SourceForge
- Extract the files on your local computer
Step 2: Upload Required Files
Upload the following folders to your chosen directory:
- cgi-bin
- icon
✅ Example Structure
public_html/
├── cgi-bin/
│ ├── awstats.pl
│ ├── awredir.pl
│ └── (other files and folders)
└── icon/
├── browser/
├── flags/
└── (other folders)
Step 3: Set File Permissions
Set the correct permissions:
- cgi-bin directory → 755
- awstats.pl → 755
- awredir.pl → 755
👉 This ensures scripts can run properly
Step 4: Copy AWStats Config File
Locate your existing configuration file in cPanel:
/home/username/tmp/awstats/awstats.yourdomain.com.conf
For HTTPS stats:
/home/username/tmp/awstats/ssl/awstats.yourdomain.com.conf
Step 5: Edit the Config File
Open the file and find:
Change it to:
Upload the File
- Upload the edited file to your cgi-bin directory
- Overwrite the existing config if prompted
Step 6: Access AWStats via Browser
You can now view your stats using:
https://stats.yourdomain.com/cgi-bin/awstats.pl?config=yourdomain.com
Replace Values
- stats.yourdomain.com → Your stats subdomain
- yourdomain.com → The domain the stats relate to
Troubleshooting
- ❌ 500 Error
- Check permissions (should be 755)
- ❌ Icons not loading
- Confirm DirIcons path is set correctly
- ❌ No data showing
- Ensure your config matches the correct domain
Summary
- AWStats can be accessed outside cPanel via a web URL
- Requires manual setup (upload files + config)
- Best used on a dedicated subdomain
- Ensure permissions and paths are configured correctly
Need Help?
If you need help setting up AWStats externally or troubleshooting errors, the Firstserv support team is always happy to assist.
