It's better when it's simple

User Tools

Site Tools


Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community

Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy


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 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 URL Rewriting with DokuWiki's default .htaccess these statistics will no longer be reachable. Use the following rules in your .htaccess instead:

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
install/dreamhost.txt · Last modified: 2009-02-25 11:04 by