View Single Post
Old 26th February 2010, 05:56
dclardy dclardy is offline
Senior Member
Join Date: Sep 2009
Location: Dallas, TX
Posts: 347
Thanks: 10
Thanked 50 Times in 28 Posts
Default 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 as the domain below.

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

htpasswd -c /var/www/ 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

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.

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.
Reply With Quote
Sponsored Links