Project

General

Profile

DokuWiki » History » Revision 9

Revision 8 (stbuehler, 2009-03-23 12:08) → Revision 9/10 (battox, 2010-03-01 10:04)

http://wiki.splitbrain.org/wiki:dokuwiki 

 For Debian Lenny (Spanish): 
 http://wiki.eudemocracia.org/server:DokuWiki 

 For Ubuntu 8.04: 


 <pre> 

 sudo apt-get install php5-cgi php5-gd dokuwiki 
 </pre> 


 /etc/lighttpd/conf-available/10-dokuwiki.conf (wget -O /etc/lighttpd/conf-available/10-dokuwiki.conf http://redmine.lighttpd.net/attachments/623/10-dokuwiki.conf) 

 <pre> 

 # dokuwiki lighttpd config 

 url.rewrite-once = (                                                                                                    
         "^(/|index.php)?$" => "/doku.php",                                                                      
         "^/lib/(.*)/?$" => "/lib/$1", 
         "^/_media/(.*)?\?(.*)$" => "/lib/exe/fetch.php?media=$1&$2", 
         "^/_media/(.*)$" => "/lib/exe/fetch.php?media=$1", 
         "^/_detail/(.*)?\?(.*)$" => "/lib/exe/detail.php?media=$1&$2", 
         "^/_detail/(.*)?$" => "/lib/exe/detail.php?media=$1", 
         "^/_export/([^/]+)/(.*)$" => "/doku.php?do=export_$1&id=$2", 
         "^/(?!doku.php|feed.php|robots.txt|sitemap.xml.gz)(.*)\?(.*)/?$" => "/doku.php?id=$1&$2", 
         "^/(?!doku.php|feed.php|robots.txt|sitemap.xml.gz|lib|_media|_detail|_export)(.*)/?$" => "/doku.php?id=$1", 
 ) 
 </pre> 



 <pre> 

 sudo lighty-enable-mod dokuwiki 
 sudo /etc/init.d/lighttpd restart 
 </pre> 


 Fix permissions for the installer script (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=404353): 

 <pre> 

 chown -R www-data /usr/share/dokuwiki/conf/ 
 </pre> 


 Fix the checksum of /etc/dokuwiki/dokuwiki.php in /usr/share/dokuwiki/install.php 

 <pre> 

 md5sum /etc/dokuwiki/dokuwiki.php 
 </pre> 


 Change in /usr/share/dokuwiki/install.php 

 <pre> 

 -      '2007-06-26'     => '7a1bd119a5c51d731be2fc8786aad4e7', 
 +      '2007-06-26'     => '7a1bd119a5c51d731be2fc8786aad4e7', 
 </pre> 



 <pre> 

 cd /var/lib/dokuwiki/acl/ 
 mv acl.auth.php acl.auth.php.bak 
 mv users.auth.php users.auth.php.bak 
 </pre> 


 In /etc/lighttpd/lighttpd.conf change: 

 <pre> 

 -#              "mod_rewrite", 
 +               "mod_rewrite", 

 ... 

 -server.document-root         = "/var/www/" 
 +server.document-root         = "/usr/share/dokuwiki" 
 </pre> 


 Restart lighttpd: 

 <pre> 

 /etc/init.d/lighttpd restart 
 </pre> 


 Now run the DokuWiki installer page at: http://localhost/install.php