install:upgrade
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
install:upgrade [2011-05-25 16:15] – [Files to remove] adrianlang | install:upgrade [2024-02-22 21:33] (current) – [Alternative Ways] 84.15.186.150 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Upgrading ====== | + | ====== Upgrading |
- | Before upgrading, | + | Note: if you installed DokuWiki through your Linux Distribution' |
- | The easiest way to upgrade is by performing | + | DokuWiki is very simple |
- | | + | * **Step 0:** Make sure your server meets the [[:requirements]]. |
- | * < | + | |
- | - [[http:// | + | |
- | - **Either** download dokuwiki tarball into a directory of choice: | + | |
- | * < | + | |
- | wget http:// | + | |
- | </ | + | |
- | * Extract it into a subfolder named '' | + | |
- | * < | + | |
- | * Then copy/upload all its files over your old DokuWiki installation overwriting all existing files: | + | |
- | * < | + | |
- | * The quotes around cp ensures | + | |
- | * The .??* ensures the hidden files (e.g.: the .htaccess.dist) are also copied | + | |
- | - **Or** download directly into your dokuwiki' | + | |
- | * < | + | |
- | wget http:// | + | |
- | </ | + | |
- | * Extract it into dokuwiki root overwriting existing files: | + | |
- | * < | + | |
- | * Remove the downloaded archive: | + | |
- | * < | + | |
- | - Check [[..changes|Changelog]] | + | |
- | - Remove install.php | + | |
- | - Remove old files that are not used anymore (See below for a list of files) | + | |
- | - Fix [[install: | + | |
- | - Compare your .htaccess with the delivered .htaccess.dist for needed changes | + | |
- | - Update your plugins and template | + | |
- | - make sure your cache is invalidated by touching '' | + | |
- | - updating your index may be necessary; see [[: | + | |
- | The above steps are safe when you always adhered to the advice to only change local versions of your config files (like '' | + | * **Step 1:** Make a [[:faq:backup]] of your DokuWiki, this is not necessarily needed but recommended |
+ | * Example:\\ <code bash>tar zcpfv dokuwiki-backup.tar.gz / | ||
- | ===== Files to remove ===== | + | * **Step 2:** Read the [[: |
- | Here is a list of files that were removed in recent releases. You should check if they still exist in your install. If they do, delete them. | + | * **Step 3:** Download the newest release from the [[https:// |
+ | * <code bash>cd ~ | ||
+ | wget http:// | ||
- | <file - removeold.txt> | + | * **Step 4:** [[unpacking|Unpack]] the distribution tarball and upload/copy the files over your previous installation. Make sure to **overwrite all files** when prompted. |
- | # removed in 2011-05-25 | + | * <code bash>tar zxvf dokuwiki-xxxx-xx-xx.tgz |
- | conf/words.aspell.dist | + | ' |
- | lib/styles/style.css | + | * Check copied files ownership and permissions (for details see [[install: |
- | # removed in 2010-11-07 | + | * **Step 5:** Delete all [[unused files]] |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | # removed in rc2010-10-07 | + | * **Step 6:** Upgrade your [[: |
- | conf/msg | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | lib/ | + | |
- | # removed in rc2009-12-02 | + | * **Step 7:** Wait a day for the update notifications to go away. Alternatively, |
- | inc/ | + | |
- | inc/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | # removed in rc2009-01-30 | ||
- | lib/ | ||
- | lib/ | ||
- | # removed | + | Note: Yes, we explicitly recommend overwriting your old installation. If you adhered to the advice of defining config options |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | inc/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | # removed in rc2008-03-31 | + | ===== Pitfall on suhosin |
- | inc/aspell.php | + | |
- | inc/ | + | |
- | inc/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | # removed in 2007-06-26 | + | DokuWiki version since 2015-08-10 " |
- | inc/parser/wiki.php | + | |
- | lib/images/interwiki/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | lib/ | + | |
- | # removed in 2006-11-06 | ||
- | inc/ | ||
- | inc/ | ||
- | inc/magpie | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | lib/ | ||
- | lib/ | ||
- | lib/ | ||
- | lib/ | ||
- | |||
- | # removed in 2006-03-09 | ||
- | data/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | inc/ | ||
- | lib/ | ||
- | lib/ | ||
- | lib/ | ||
- | lib/ | ||
- | lib/ | ||
- | lib/ | ||
- | lib/ | ||
- | lib/ | ||
- | lib/ | ||
- | lib/ | ||
- | lib/ | ||
- | lib/ | ||
- | lib/ | ||
- | lib/ | ||
- | </ | ||
- | |||
- | People with shell access to their server can copy the text above and paste it into a file on the system, then run the following commands to check for and remove all those files. Only those that exist are removed. I used the filename of / | ||
- | |||
- | < | ||
- | grep -Ev " | ||
- | </ | ||
- | |||
- | If you are paranoid, replace the "rm -f" with "ls -la" to see what files will be deleted. | ||
- | |||
- | To remove directories as well as files you have to use: | ||
- | < | ||
- | grep -Ev " | ||
- | </ | ||
- | |||
- | However, some systems may not support the "rm -d" option for directory removal. In that case, you have to use recursive removal (just be sure to double-check that the file list does not include any paths that will delete too much): | ||
- | < | ||
- | grep -Ev " | ||
- | </ | ||
- | |||
- | Some systems may give an ' | ||
- | |||
- | I have created a python script that will print the files deleted, it can be improved | ||
- | < | ||
- | import os | ||
- | file = open("/ | ||
- | for line in file: | ||
- | # | ||
- | if not line.isspace() : | ||
- | if not line[0:1] =='#' | ||
- | | ||
- | try: | ||
- | print(line) | ||
- | os.remove(line) | ||
- | except OSError, err: | ||
- | pass | ||
- | </ | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
- | If you encounter some inconsistencies in [[..: | + | The following pages should give you hints on common post-upgrade problems: |
- | + | ||
- | Related pages that might apply: | + | |
+ | * [[: | ||
* [[config: | * [[config: | ||
* [[faq: | * [[faq: | ||
* [[faq: | * [[faq: | ||
+ | |||
+ | If you get errors about missing/ | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
===== Alternative Ways ===== | ===== Alternative Ways ===== | ||
Line 334: | Line 54: | ||
* Use [[plugin: | * Use [[plugin: | ||
* [[.: | * [[.: | ||
- | * [[http:// | + | |
+ | | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | ===== Upgrading an Old Distribution ===== | ||
+ | |||
+ | When upgrading from a distribution which is a few or more years old, it is best to upgrade in stages, one year at a time, using the steps described above. | ||
install/upgrade.1306332905.txt.gz · Last modified: 2011-05-25 16:15 by adrianlang