Wordpress 2.0.x and Dreamhost Stats

apps

#1

How many of you who have Wordpress isntalled on your sites have noticed stats don’t work with the new version of WP?

Dreamhost guided me to a “fix” on their Wiki that woudl append the .htaccess file, but Wordpress repeatedly appended the appended .htaccess file so that the new code that was inserted would be wiped out (should I have chmod the .htaccess file to somehow prevent this?).

Another solution that I had someone provide for me was a plugin for Wordpress specifically for Dreamhost. Thsi plugin sort of works, and sort of doesn’t – meaning if I have an invalid syntax int he plugin file, I get error messages but am allowed to view Dreamhost stats, and if I repair the syntax inside the plugin file, the plugin fails to work (and going to yourpage.com/stats would simply redirect to the main page of the site).

Is there a definitive fix out there? Or more experiencing this error than just I?


#2

Just take a look on the wiki: :wink:
http://wiki.dreamhost.com/index.php/Making_stats_accessible_with_htaccess


#3

I’ve had the exact same problem, but just used a php script in a different directory to fread the appropriate log file. Then switched to AWStats, although I use good ol’ php still to read the resources stuff. AWStats seems like a great solution. Not sure why that htaccess thingy doesn’t work.

~Chell


#4

You should try adding your own rules outside the # BEGIN WordPress & # END WordPress block. My .htaccess for www.ashchan.com looks like (and it works):
#BEGIN Ash

RewriteEngine On
RewriteBase /
#RewriteCond %{REQUEST_URI} ^/rocdeng ./_rocdeng.htm
RewriteCond %{REQUEST_URI} ^/stats/(.)$ [OR]
RewriteCond %{REQUEST_URI} ^/failed_auth.html$
RewriteRule ^.
$ - [L]

#END Ash

BEGIN WordPress

RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

END WordPress

I had a blog entry on this topic, the url is http://www.ashchan.com/2006/03/26/wordpress-cpu-usage-on-dreamhost/, but it was in Chinese. I hope the example above would help.

http://www.ashchan.com