View Single Post
  #1  
Old 26th February 2010, 04:56
dclardy dclardy is offline
Senior Member
 
Join Date: Sep 2009
Location: Dallas, TX
Posts: 347
Thanks: 10
Thanked 47 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 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.
Reply With Quote
Sponsored Links