HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Webalizer Stats and Drupal (http://www.howtoforge.com/forums/showthread.php?t=43692)

dclardy 26th February 2010 04:56

Webalizer Stats and Drupal
 
I have been reading a lot about the stats folder not working with Drupal installed. This has been really annoying me. I have spent the past hour trying to figure it out. I am using example.com as the domain below.

Earlier today, I noticed that there was no .htpasswd_stats file in the /var/www/example.com/ folder. You will have to create that for now.

Code:

htpasswd -c /var/www/example.com/.htpasswd_stats admin
This will create the password, but it still will not work. After searching, I found this helpful tip on the drupal site.

Create a new .htaccess file in the target folder, eg folder1/.htaccess
Add the lines

Code:

DirectoryIndex index.php index.html index.htm
Options +Indexes

I then went to the .htaccess folder and added those two lines at the beginning. The file should look like this when complete.

Code:

DirectoryIndex index.php index.html index.htm
Options +Indexes

AuthType Basic
AuthName "Members Only"
AuthUserFile /var/www/clients/client1/web1/.htpasswd_stats
require valid-user

I can say that this got me the webalizer stats back. I hope that it helps someone out there. It seems that a lot of us are using Drupal these days.


All times are GMT +2. The time now is 22:21.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.