Wednesday, January 26, 2011

Kohana 3 - .htaccess that Works on DreamHost

I’m currently hosting my sites on DreamHost because … well let me just put it this way: we’re both cheap. It works out. But what doesn’t work out are the default .htaccess rules that come bundled with Kohana. So to fix this, swap the line [cci lang="apache"]RewriteRule .* index.php/$0 [PT][/cci] found in your .htaccess with one of the following options:

[cc lang="text"]# Option 1
RewriteRule .* index.php?/$0 [PT,L,QSA]

# Option 2
RewriteRule .* index.php?kohana_uri=$0 [PT,L,QSA][/cc]

Monday, January 24, 2011

Friday, January 21, 2011

Dreamhost PS upgrade

如果在升级Dreamhost的VPS时候遇到问题,大部分是因为 ndn-megacli 这个包不能升级,以下是解决方法
[cc lang="text"]rm -f /etc/init.d/ndn-megacli
dpkg -P --force-all ndn-megacli
apt-get install ndn-megacli[/cc]