User Tools

Site Tools


tutorials:dokuwiki

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tutorials:dokuwiki [2010/07/19 19:02]
razvan
tutorials:dokuwiki [2011/09/13 15:54]
razvan [Install and Upgrade Scripts]
Line 1: Line 1:
 = DokuWiki Installation and Configuration = = DokuWiki Installation and Configuration =
  
-[[http://www.dokuwiki.org/dokuwiki|DokuWiki]] is one of the [[http://www.wikimatrix.org/statistic/Most+Views|most popular wiki implementations]]. I'm using it right now to write this tutorial. DokuWiki is a lightweight implementation and has couple of features which I find very useful and convenient:+[[http://www.dokuwiki.org/dokuwiki|DokuWiki]] is one of the [[http://www.wikimatrix.org/statistic/Most+Views|most popular wiki implementations]]. I'm using it right now to write this tutorial. DokuWiki is a lightweight implementation possessing a of features which I find very useful and convenient:
 * it is file-based (no database required); * it is file-based (no database required);
 * installation and configuration is a breeze, especially for a manual installation (grabbing the source code, unzip and configure); * installation and configuration is a breeze, especially for a manual installation (grabbing the source code, unzip and configure);
Line 13: Line 13:
 DokuWiki is highly configurable and customizable and I'm going to define the features that are to be used by a wiki installation. These are the features I'm usually going for when doing a DokuWiki installation, such as [[http://swarm.cs.pub.ro/~razvan/dokuwiki/|this one]]: DokuWiki is highly configurable and customizable and I'm going to define the features that are to be used by a wiki installation. These are the features I'm usually going for when doing a DokuWiki installation, such as [[http://swarm.cs.pub.ro/~razvan/dokuwiki/|this one]]:
 * The wiki is to be installed by a non-priviliged users using their own "user directory" (such as {{{public_html}}}). * The wiki is to be installed by a non-priviliged users using their own "user directory" (such as {{{public_html}}}).
-* The wiki is public: everyone can read its contents and only certain users (through the use of ACLs) can edit it, after logging in). +* The wiki is public: everyone can read its contents and only certain users may edit it, after logging in (through the use of ACLs). 
-* Create index pages for easy access to informatio. This is achieved with the help of the [[http://www.dokuwiki.org/plugin:indexmenu|indexmenu plugin]]. My wiki's [[http://swarm.cs.pub.ro/~razvan/dokuwiki/|start page]] or [[http://swarm.cs.pub.ro/~razvan/dokuwiki/start?do=index|index page]] are index pages deployed with the help the indexmenu plugin.+* Create index pages for easy access to information. This is achieved with the help of the [[http://www.dokuwiki.org/plugin:indexmenu|indexmenu plugin]]. My wiki's [[http://swarm.cs.pub.ro/~razvan/dokuwiki/|start page]] or [[http://swarm.cs.pub.ro/~razvan/dokuwiki/start?do=index|index page]] are index pages deployed with the help the indexmenu plugin.
 * The wiki will use "pretty" slash-separated URL. It will use {{{http://swarm.cs.pub.ro/~razvan/dokuwiki/tutorials/dokuwiki}}} instead of {{{http://swarm.cs.pub.ro/~razvan/dokuwiki/doku.php?id=tutorials:dokuwiki}}}. * The wiki will use "pretty" slash-separated URL. It will use {{{http://swarm.cs.pub.ro/~razvan/dokuwiki/tutorials/dokuwiki}}} instead of {{{http://swarm.cs.pub.ro/~razvan/dokuwiki/doku.php?id=tutorials:dokuwiki}}}.
 * The wiki will enable [[http://www.wikicreole.org/|Creole markup]], through the use of the [[http://www.dokuwiki.org/plugin:creole|creole plugin]]. * The wiki will enable [[http://www.wikicreole.org/|Creole markup]], through the use of the [[http://www.dokuwiki.org/plugin:creole|creole plugin]].
 * The wiki will define a {{{contrib}}} namespace that is world-writable. * The wiki will define a {{{contrib}}} namespace that is world-writable.
 * The wiki will define an {{{internal}}} namespace that is readable/writable only by authenticated users. * The wiki will define an {{{internal}}} namespace that is readable/writable only by authenticated users.
 +* The wiki enables HTTPS-access to login/logout and admin pages (but HTTP access for normal ones).
 * The wiki enables LDAP authentication (optional - one must have access to a LDAP service). * The wiki enables LDAP authentication (optional - one must have access to a LDAP service).
-* The wiki enables HTTPS-access to login/logout and admin pages (but HTTP access for normal ones) (optional - the web server used for deploying the wiki must have HTTPS enabled). 
  
-== Basic Installation and Configuration ==+== Install and Upgrade Scripts ==
  
-=== Install Scripts === +* Mircea Bardac and me have created a set of scripts for installation, configuration and upgrade of DokuWiki. These scripts provide solutions to most of the above [[:tutorials:dokuwiki#user_requirements]]. The scripts are part of the [[http://koala.cs.pub.ro/gitweb/?p=admin-public.git;a=tree|admin Git repository]] storing a variety of administrative scripts.
- +
-* Mircea Bardac and me have created a set of scripts for a basic installation and configuration of DokuWiki. These scripts provide solutions to most of the above [[:tutorials:dokuwiki#user_requirements]]. The scripts are part of the [[http://koala.cs.pub.ro/git/?p=admin-public.git;a=tree|admin Git repository]] storing a variety of administrative scripts.+
 * Issue the following command to get a copy of the repository<code> * Issue the following command to get a copy of the repository<code>
 git clone http://koala.cs.pub.ro/git/admin-public.git git clone http://koala.cs.pub.ro/git/admin-public.git
 </code> </code>
-* Browse to the {{{dokuwiki/}}} subfolder. The {{{install_dokuwiki}}} and {{{post_install_dokuwiki}}} scripts are used for installing and configuring DokuWikiThe {{{README}}} contains the instructions for using them and subsequent configuration. The {{{samples/}}} folder contains sample configuration files+* Browse to the {{{dokuwiki/}}} subfolder. Please go through the {{{README}}} file for a description of each file. 
-=== Using the Install Scripts ===+* Instructions below are also present in the {{{README}}} file in the {{{dokuwiki/}}} folder in the repository
 +== Basic Installation and Configuration ==
  
-These instructions are also present in the {{{README}}} file in the {{{dokuwiki/}}} folder in the repository.+ 
 +=== Using the Install Scripts ===
  
 # Find the desired DokuWiki version for download. Use this [[http://www.splitbrain.org/projects/dokuwiki|download URL]]. # Find the desired DokuWiki version for download. Use this [[http://www.splitbrain.org/projects/dokuwiki|download URL]].
-# Run the install {{{install_dokuwiki}}} script. It requires three arguments:+# Run the install {{{dw-install}}} script. It requires three arguments:
 ## the installation folder for {{{dokuwiki}}}; it must exist; ({{{~/public_html/dokuwiki2/}}} in the sample run) ## the installation folder for {{{dokuwiki}}}; it must exist; ({{{~/public_html/dokuwiki2/}}} in the sample run)
 ## the DokuWiki tarball download URL; ({{{http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2009-12-25.tgz}}} - the latest stable version - in the sample run) ## the DokuWiki tarball download URL; ({{{http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2009-12-25.tgz}}} - the latest stable version - in the sample run)
 ## the future DokuWiki URL. ({{{http://elf.cs.pub.ro/so/wiki2/}}} in the sample run) ## the future DokuWiki URL. ({{{http://elf.cs.pub.ro/so/wiki2/}}} in the sample run)
 #* Sample run:<code> #* Sample run:<code>
-so@elf:~/dokuwiki$ ./install_dokuwiki  ~/public_html/dokuwiki2/ http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2009-12-25.tgz http://elf.cs.pub.ro/so/wiki2+razvan@swarm:~/scripts/dw$ ./dw-install ~/public_html/dw-test/ http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2011-05-25a.tgz http://swarm.cs.pub.ro/~razvan/dw-test 
-* Using download link http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2009-12-25.tgz + 
-  * Downloading DokuWiki ...  done. +* Logging information to /tmp/tmp.JYCdHg2w5P. 
-* Preparing installation folder /home/so/public_html/dokuwiki2/ ... done.+* Using download link http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2011-05-25a.tgz 
 +  * Downloading DokuWiki ... done. 
 +* Preparing installation folder /home/razvan/public_html/dw-test/ ... done.
 * Installing plugins * Installing plugins
   * Installing plugin: Creole ... done.   * Installing plugin: Creole ... done.
Line 51: Line 53:
   * Installing plugin: Index-Menu ... done.   * Installing plugin: Index-Menu ... done.
   * Installing plugin: Display-Wiki-Page ...done.   * Installing plugin: Display-Wiki-Page ...done.
 +  * Installing ggauth backend ...done.
  
 Installation complete. Installation complete.
-1. Open in web browser: http://elf.cs.pub.ro/so/wiki2/install.php +1. Open in web browser: http://swarm.cs.pub.ro/~razvan/dw-test/install.php 
-2. After the install procedure run+2. Fill required information to complete the basic installation. 
-   ./post_install_dokuwiki /home/so/public_html/dokuwiki2/ /so/wiki2/ +3. Remove /home/razvan/public_html/dw-test//install.php.bak file. 
- +4. Run
-Now you're done.+   ./dw-post-install /home/razvan/public_html/dw-test/ /~razvan/dw-test/
 </code> </code>
 # Open install URL (as mentioned in step 1 of the post-install message) and configure DokuWiki instance. # Open install URL (as mentioned in step 1 of the post-install message) and configure DokuWiki instance.
 #* The web configuration interface is quite intuitive. #* The web configuration interface is quite intuitive.
 #* You will probably go for a public wiki (read access for everyone, and write access for registered users). #* You will probably go for a public wiki (read access for everyone, and write access for registered users).
-# Run the {{{post_install_dokuwiki}}} script (as mentioned in step of the post-install message)+# Run the {{{dw-post-install}}} scriptas mentioned in step of the end message. 
-#* The script creates a {{{.htaccesss}}} file in DokuWiki's installation folder and prints out other configuration options you should do+#* The `dw-post-install' script is actually responsible for two things: 
-#** The {{{.htaccess}}} file contains Apache2 [[http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html|mod_rewrite]] rules for pretty slash-based URLs.+#*# Updating the {{{$DW_ROOT/conf/local.php}}} file. That means wiki and plugin configuration. The configuration is what we commonly use. Go through file and update it according to your needs/preferences
 +#*# Creating the {{{$DW_ROOT/.htaccess}}} file. This file is responsible with the configuration of pretty (hierarchical) URLs and HTTPS support.
 #* Sample run:<code> #* Sample run:<code>
-so@elf:~/dokuwiki$ ./post_install_dokuwiki /home/so/public_html/dokuwiki2/ /so/wiki2+razvan@swarm:~/scripts/dw$ ./dw-post-install /home/razvan/public_html/dw-test/ /~razvan/dw-test
-Add to '/home/so/public_html/dokuwiki2/conf/local.php' the following lines + * Updating conf/local.php ... done. 
-(use the web interface in case you don't have enough rights): + * Updating .htaccess ... done.
- +
-$conf['start'] = 'home'; +
-$conf['youarehere'] = 1; +
-$conf['sneaky_index'] = 1; +
-$conf['userewrite'] = '1'; +
-$conf['securecookie'] = 0; +
-$conf['useslash'] = 1; +
-$conf['sepchar'] = '-'; +
-$conf['plugin']['creole']['precedence'] = 'creole'; +
-$conf['plugin']['indexmenu']['page_index'] = 'home:index'; +
-$conf['plugin']['indexmenu']['skip_index'] = '/(home|playground)/'; +
-$conf['plugin']['indexmenu']['skip_file'] = '/^:home:index.txt$/'; +
- +
- +
-Add to the beginning of '/home/so/public_html/dokuwiki2/.htaccess' (after 'RewriteEngine on') +
-the following lines (in case you want to enable HTTPS access to login and admin pages): +
- +
-# Switch to secure on login, profile and admin actions +
-RewriteCond %{HTTPS} !on +
-RewriteCond %{QUERY_STRING} do=(log|profile|admin) +
-RewriteRule ^(.*) https://%{HTTP_HOST}/so/wiki2/$1 [R,QSA,L] +
- +
-# Change back to non-secure on show action +
-RewriteCond %{HTTPS} on +
-RewriteCond %{QUERY_STRING} (do=show|^$) +
-RewriteCond %{REQUEST_METHOD} GET +
-RewriteRule ^(.*) http://%{HTTP_HOST}/so/wiki2/$1 [R,QSA,L]+
 </code> </code>
-# Add {{{local.php}}} configurations as mentioned in previous output. +# **Congratulations!** You've got a basic DokuWiki installation with pretty slash based URLs, HTTPS support login and Creole markup.
-#* The reason they are not added automatically is the current user may not have access to the {{{local.php}}} file (as it is created by the web server through the {{{www-data}}} user). +
-#In case of no rights (the {{{www-data}}} user creates the file) use DokuWiki's web administrative interface: login, use the {{{Admin}}} button and then the {{{Configuration Settings}}} link. You should have no problem identifying the required web interface directives. +
-Congratulations! You've got a basic DokuWiki installation with pretty slash based URLs and Creole markup. +
 === indexmenu Configuration === === indexmenu Configuration ===
  
Line 128: Line 100:
  
 == Advanced Configuration == == Advanced Configuration ==
-=== HTTPS Access === 
- 
-* In case you want HTTPS access, add the configuration lines mentioned in the output message of the {{{post_install_dokuwiki}}} script to the {{{.htaccess}}} file in DokuWiki's installation folder. 
-* Make sure you add them after the {{{RewriteEngine On}}} line and _before_ the other [[http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html|mod_rewrite]] lines (used for pretty URLs). 
  
 === LDAP Authentication === === LDAP Authentication ===
  
 * The [[http://www.dokuwiki.org/auth:ldap|official LDAP Authentication page]] contains important information regarding the configuration of LDAP authentication. * The [[http://www.dokuwiki.org/auth:ldap|official LDAP Authentication page]] contains important information regarding the configuration of LDAP authentication.
-* The [[http://koala.cs.pub.ro/git/?p=admin.git;a=blob;f=dokuwiki/samples/dokuwiki-ldap-auth-swarm.conf;h=f955588a13f1ea8424d75f042cccb27ae623ace3;hb=HEAD|dokuwiki/samples/dokuwiki-ldap-auth-swarm.conf]] contains a configuration sample for LDAP authentication using the LDAP service installed on the {{{swarm.cs.pub.ro}}} server:<code>+* The [[http://koala.cs.pub.ro/gitweb/?p=admin-public.git;a=blob;f=dokuwiki/samples/dokuwiki-ldap-auth-swarm.conf;hb=HEAD|dokuwiki/samples/dokuwiki-ldap-auth-swarm.conf]] contains a configuration sample for LDAP authentication using the LDAP service installed on the {{{swarm.cs.pub.ro}}} server:<code> 
 +$conf['disableactions'] = 'register,profile,resendpwd'; 
 $conf['authtype'   = 'ldap'; $conf['authtype'   = 'ldap';
- +
 $conf['auth']['ldap']['port'       = 636; $conf['auth']['ldap']['port'       = 636;
 $conf['auth']['ldap']['server'     = 'ldaps://swarm.cs.pub.ro'; $conf['auth']['ldap']['server'     = 'ldaps://swarm.cs.pub.ro';
Line 158: Line 128:
 * The {{{$conf['authtype'   = 'ldap';}}} line enables LDAP authentication. * The {{{$conf['authtype'   = 'ldap';}}} line enables LDAP authentication.
 * The {{{$conf['auth']['ldap']['debug'     = 1;}}} line should be commented out after the configuration is working. * The {{{$conf['auth']['ldap']['debug'     = 1;}}} line should be commented out after the configuration is working.
-* **IMPORTANT**: You may not have write access to the {{{local.php}}} configuration file. Unfortunatelly there is no web interface for LDAP authentication configurationThe simplest solution is asking the system administrator to give you access rights to that file.+* **IMPORTANT**: You may not have write access to the {{{local.php}}} configuration file. The solution is
 +*# Make a copy of the {{{local.php}}} file (be it {{{local.php.bak}}}). 
 +*# Delete the file {{{rm local.php}}}; it asks for confirmation -- confirm itThis works as the file is in your home folder. 
 +*# Copy the backup file ({{{local.php.bak}}}) to {{{local.php}}}. 
 +*# Provide access writes to the group, assuming that to be {{{www-data}}}, in order to allow web server write access from the web configuration interface: {{{chmod g+w local.php}}}.
  
-==== Disable Register Action ====+==== Disable Unnecessary Actions ====
  
-In case you choose to use LDAP authentication, you should disable the Dokuwiki's {{{Register}}} optionenabling users to automatically create an account for DokuWiki plain authentication. This can be accomplished by two means: +In case you choose to use LDAP authentication, you should disable the Dokuwiki's {{{Register}}}, {{{Send password}}} and {{{Profile}}} options. This can be accomplished by two means: 
-# use the {{{$conf['disableactions'] = 'register';}}} line in {{{local.php}}};+# use the {{{$conf['disableactions'] = 'register,resendpw,profile';}}} line in {{{local.php}}};
 # use the DokuWiki's administrative {{{Configuration Manager}}} link (search for {{{disableactions}}}). # use the DokuWiki's administrative {{{Configuration Manager}}} link (search for {{{disableactions}}}).
-=== Split authentication ===+=== Split Authentication ===
  
 The LDAP service often offers little support for group authorization inside DokuWiki. A better approach would be authenticating through LDAP and using another engine for authentication. This can be accomplished through the use of [[http://www.dokuwiki.org/auth:ggauth#split|split authentication]]. I'm using it to authenticate through LDAP and use the basic {{{user.auth.php}}} file in DokuWiki's {{{conf/}}} folder. The LDAP service often offers little support for group authorization inside DokuWiki. A better approach would be authenticating through LDAP and using another engine for authentication. This can be accomplished through the use of [[http://www.dokuwiki.org/auth:ggauth#split|split authentication]]. I'm using it to authenticate through LDAP and use the basic {{{user.auth.php}}} file in DokuWiki's {{{conf/}}} folder.
  
-In order to provide split authentication, do the following: +The [[http://lastweekend.com.au/ggauth.5.zip|experimental authentication backends]], providing "split authentication" is deployed in the [[:tutorials:dokuwiki#install_and_upgrade_scripts install script]]. 
-# Download the [[http://lastweekend.com.au/ggauth.4.zip|experimental authentication backends]] and unpack them in DokuWiki's installation folder (as mentioned [[http://www.dokuwiki.org/auth:ggauth#installation|here]]).+ 
 +In order to configure split authentication, do the following:
 # Update the {{{local.php}}} file with configuration lines such as these:<code> # Update the {{{local.php}}} file with configuration lines such as these:<code>
 $conf['authtype'] = 'split'; $conf['authtype'] = 'split';
Line 186: Line 161:
 # user:MD5password:Real Name:email:groups,comma,separated # user:MD5password:Real Name:email:groups,comma,separated
  
-razvan:x:Razvan Deaconescu:x:admin,so +razvan:x:x:x:admin,so 
-oana:x:Oana Baron:x:so +oana:x:x:x:so 
-ddvlad:x:Vlad Dogaru:x:so +ddvlad:x:x:x:so 
-dbaluta:x:Daniel Baluta:x:so +dbaluta:x:x:x:so 
-apitis:x:Andrei Pitis:x:so +apitis:x:x:x:so 
-bdrutu:x:Bogdan Drutu:x:so +bdrutu:x:x:x:so 
-catalinme:x:Catalin Moraru:x:so+catalinme:x:x:x:so
 [...] [...]
 </code> </code>
-#* The {{{MD5password}}} and {{{email}}} fields are provided by the LDAP authentication engine and aren't filled. This may also hold true for {{{Real Name}}} but I didn't check+#* The {{{MD5password}}}, {{{Real Name}}} and {{{email}}} fields are provided by the LDAP authentication engine and aren't filled. 
-# You can now use the {{{Access Control List Management}}} link in the Administration menu for authorization: configuring access rights for users and groups.+# You can now use the {{{Access Control List Management}}} link in the "Administrationmenu for authorization: configuring access rights for users and groups.
 == Upgrading == == Upgrading ==
  
 DokuWiki has a smart notification system that lets you know whether a new version of DokuWiki is available. A DokuWiki upgrade is fairly easy to accomplish. The upgrade steps are described on the [[http://www.dokuwiki.org/install:upgrade|official page]]. DokuWiki has a smart notification system that lets you know whether a new version of DokuWiki is available. A DokuWiki upgrade is fairly easy to accomplish. The upgrade steps are described on the [[http://www.dokuwiki.org/install:upgrade|official page]].
  
-The steps below have been undertaken during an actual upgrade. +The are two scripts you may useOne is to be run by root (the {{{dw-upgrade}}} script), while the other (the {{{dw-upgrade-no-root}}} script) may be run by a non-priviliged userEach script creates backup copy of the current wiki installation before upgrading.
-# Backup the previous DokuWiki folder<code> +
-$ cp -a wiki/ 2009-12-30-wiki-bak +
-</code> +
-# [[http://www.splitbrain.org/projects/dokuwiki|Download]] new version of DokuWiki. I'm upgrading to the [[http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2009-12-25.tgz|current stable version]].<code> +
-$ wget http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2009-12-25.tgz +
-$ ls +
-2009-12-30-wiki-bak  dokuwiki-2009-12-25.tgz  lab  wiki +
-</code> +
-# Unpack the DokuWiki archive.<code> +
-$ tar xzf dokuwiki-2009-12-25.tgz +
-$ ls +
-2009-12-30-wiki-bak  dokuwiki-2009-12-25  dokuwiki-2009-12-25.tgz  lab  wiki +
-</code> +
-# Copy new files over the old wiki installation. Overwrite existing files.<code> +
-$ cp -rf dokuwiki-2009-12-25/* wiki/ +
-</code> +
-# Do a check for [[http://www.dokuwiki.org/install:upgrade#files_to_remove|files to be removed]] and remove them.<code> +
-$ rm inc/lang/ar/wordblock.txt +
-[...] +
-</code> +
-# Check permissions, especially permission on {{{data/}}} folder (web user must have write access enabled). +
-# Update plugins. I'upgrading the [[http://www.dokuwiki.org/plugin:googleanalytics|googleanalytics]], [[http://www.dokuwiki.org/plugin:include|include]], [[http://www.dokuwiki.org/plugin:displaywikipage|displaywikipage]], [[http://www.dokuwiki.org/plugin:creole|creole]] and [[http://www.dokuwiki.org/plugin:indexmenu|indexmenu]] plugins.<code> +
-$ cd lib/plugins/+
  
-$ wget http://cloud.github.com/downloads/tatewake/dokuwiki-plugin-googleanalytics/googleanalytics-stable.tar.gz +The {{{dw-upgrade}}} script (run by {{{root}}}) is to be used when your backup needs to be web accessibleThe backup uses the precises ownership information and access rights (may be owned by {{{www-data}}}) such that it would be an exact copy of the original DokuWiki installationIn order for the backup copy to be completely accesible, its {{{.htaccess}}} filesh ould probably be updated.
-$ tar xzf googleanalytics-stable.tar.gz +
-$ rm googleanalytics-stable.tar.gz +
  
-$ wget http://cloud.github.com/downloads/dokufreaks/plugin-include/plugin-include.tgz +The backup directory passed to the scripts should existThis is where the actual backup is created using a name starting with {{{dokuwiki-bak}}} (such as {{{dokuwiki-bak-2011-09-12}}}).
-$ tar xzf plugin-include.tgz  +
-$ rm plugin-include.tgz +
  
-wget http://cloud.github.com/downloads/tatewake/dokuwiki-plugin-displaywikipage/displaywikipage-stable.tar.gz +A sample run is shown below:<code> 
-$ tar xzf displaywikipage-stable.tar.gz +razvan@swarm:~/scripts/dw./dw-upgrade-no-root ~razvan/public_html/dw-test/ http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2011-05-25a.tgz ~razvan/public_html/backup/
-$ rm displaywikipage-stable.tar.gz +
  
-$ wget http://www.chimeric.de/_src/plugin-creole.tgz +* Logging information to /tmp/tmp.xQuZwTyfgu
-$ tar xzf plugin-creole.tgz  +  * Downloading DokuWiki ... done. 
-$ rm plugin-creole.tgz  + * Backing up Dokuwiki instance to /home/razvan/public_html/backup//dokuwiki-bak-2011-09-12 ... done 
- + * Upgrading Dokuwiki installation in /home/razvan/public_html/dw-test/ ... done 
-$ wget http://samuele.netsons.org/dokuwiki/media/indexmenu.zip +* Installing plugins 
-$ unzip indexmenu.zip +  * Installing pluginCreole ... done
-$ rm indexmenu.zip +  Installing pluginGoogle Analytics ... done
-</code> +  Installing plugin: Include ... done. 
-# Clean the workplace.<code> +  Installing plugin: Index-Menu ... done. 
-$ rm dokuwiki-2009-12-25.tgz  +  Installing plugin: Display-Wiki-Page ...done. 
-$ rm -fr dokuwiki-2009-12-25/ +  Installing ggauth backend ...done.
-</code> +
-# <del>Write a script for the above stepsI've been too lazy to do it myself :-)</del> Use the [[dokuwiki#upgrade_script|script below]]+
-=== Upgrade script === +
- +
-Our [[http://koala.cs.pub.ro/git/?p=admin.git;a=summary|administration Git repository]] now contains [http://koala.cs.pub.ro/git/?p=admin-public.git;a=blob;f=dokuwiki/upgrade_dokuwiki;hb=HEAD | a Dokuwiki upgrade script]]. A sample run is shown below:<code> +
-elf:~/repo-admin.git/dokuwiki# ./upgrade_dokuwiki ~srisp/public_html/dokuwiki/ ~srisp/public_html/bak/ http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2009-12-25c.tgz +
- +
- Downloading Dokuwiki from http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2009-12-25c.tgz ... done +
- Unpacking Dokuwiki to /tmp//dokuwiki ... done +
- Backing up Dokuwiki instance to /home/srisp/public_html/bak//dokuwiki-bak-2010-01-22 ... done +
- Upgrading Dokuwiki installation in /home/srisp/public_html/dokuwiki/ ... done +
- Cleaning up temporary files ... done+
 </code> </code>
  
 Enjoy! Enjoy!
tutorials/dokuwiki.txt · Last modified: 2020/07/20 09:16 (external edit)