By rmendoza
Hello,
I’m trying to get Awstats to work with my LAMP stack. I followed a guide to configure it(Awstats Guide)
After configuring it I’m getting a “You don’t have permission to access /awstats/awstats.pl on this server.”
So after a lot reading I ended up with this in the /etc/httpd/conf.d/awstats.conf:
Alias /awstatsclasses "/usr/share/awstats/wwwroot/classes/"
Alias /awstatscss "/usr/share/awstats/wwwroot/css/"
Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/share/awstats/wwwroot/cgi-bin/"
<Directory "/usr/share/awstats/wwwroot">
Options FollowSymLinks
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
I also created the /etc/awstats/domain.com.conf for a virtualhost, changing the LogFile directory, SiteDomain, HostsAliases and AllowToUpdateStatsFromBrowser options.
I’ve tried a lot of fixes but none of them worked .I think it’s a problem with being able to execute cgi scripts.
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The <Directory “/usr/share/awstats/wwwroot”> was wrong, changed to <Directory “/usr/share/awstats/wwwroot/cgi-bin”> and I can now access it from the web.
Icons are missing tho.
Thanks!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.