DokuWiki

It's better when it's simple

User Tools

Site Tools


install:dreamhost

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
install:dreamhost [2009-02-25 11:03]
124.168.221.190
install:dreamhost [2009-02-25 11:04] (current)
124.168.221.190
Line 1: Line 1:
 +====== Installing Dokuwiki on DreamHost ======
 +
 +DokuWiki runs just fine on Dreamhost with a few settings.
 +
 +If you want to support the DokuWiki author, you can signup through [[http://www.dreamhost.com/r.cgi?497309|this link]] and use the promotional code ''DOKUWIKI''. This will also give you a free domain.
 +
 +===== PHP5 + CGI-Mode =====
 +
 +DreamHost uses PHP4 by default. It is recommended to switch to PHP5 in the admin panel. This will not only give you a newer PHP version but will also switch to CGI mode where it is much simpler to setup [[permissions]].
 +Please Note as at Feb09: PHP 5 was added to all plans by DreamHost as of June 2005. As of September 2008, support for PHP4 was discontinued, so you can no longer switch back to PHP 4 from PHP 5 from the panel. Existing Dreamhost users can move to PHP5 and any new install is PHP5.
 +
 +===== URL Rewriting vs. Web Stats =====
 +
 +DreamHost makes web statistics available through the ''/stats'' directory. When using [[config:userewrite|URL Rewriting]] with DokuWiki's default .htaccess these statistics will no longer be reachable. Use the following rules in your ''.htaccess'' instead:
 +
 +<code>
 +RewriteEngine On
 +RewriteBase /
 +
 +RewriteRule ^/?_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
 +RewriteRule ^/?_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
 +RewriteRule ^/?_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
 +RewriteRule ^$ doku.php  [L]
 +
 +RewriteCond %{REQUEST_FILENAME} !-f
 +RewriteCond %{REQUEST_FILENAME} !-d
 +RewriteCond %{REQUEST_URI} !^/(stats/|missing\.html|failed_auth\.html) [NC]
 +RewriteRule (.*) doku.php?id=$1 [QSA,L]
 +RewriteRule ^/?index\.php$ doku.php
 +</code>
  
install/dreamhost.txt ยท Last modified: 2009-02-25 11:04 by 124.168.221.190