By layneheiny
Hi,
DO droplet ubuntu
Installed awstats fine but when trying to load the site URL in the browser then the page returns a 404 error. APC control panel loads fine as well as phpmyadmin will load.
http://www.tuxreports.com/awstats/awstats.pl
Followed this guide to install:
https://help.ubuntu.com/community/AWStats
Is the correct lines to add to the /etc/apache2/sites-available/domain.com file?
Alias /awstatsclasses “/usr/share/awstats/lib/” Alias /awstatsicons/ “/usr/share/awstats/icon/” Alias /awstatscss “/usr/share/doc/awstats/examples/css” ScriptAlias /awstats/ /usr/lib/cgi-bin/ Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Any ideas?
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!
Redid the sites-available/domain file then restarted the apache2 service. <br> <br>Error: Couldn’t open config file “awstats.www.tuxreports.com.conf” nor “awstats.conf”. Please read the documentation for directories where the configuration file should be located. <br> <br>- Did you use the correct URL ? <br>Example: http://localhost/awstats/awstats.pl?config=mysite <br>Example: http://127.0.0.1/cgi-bin/awstats.pl?config=mysite <br>- Did you create your config file ‘awstats.www.tuxreports.com.conf’ ? <br>If not, you can run “awstats_configure.pl” from command line, or create it manually. <br> <br>Check config file, permissions and AWStats documentation (in ‘docs’ directory)
Read the error: <br> <br><pre>- Did you create your config file ‘awstats.www.tuxreports.com.conf’ ? <br>If not, you can run “awstats_configure.pl” from command line, or create it manually. </pre> <br>The article you linked above says how to properly create that config file. Did you follow that part?
Yes. Actually, I changed ownership for the files to www-data and now things work, including setting up the area for requiring a user ID and password (.htpasswd). <br> <br>Hopefully this helps the next person struggling to get awstats working.
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.