dokuwiki:upgrade_dokuwiki
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dokuwiki:upgrade_dokuwiki [2020/03/08 18:00] – created 192.168.1.69 | dokuwiki:upgrade_dokuwiki [2022/06/30 18:12] (current) – 45.89.242.195 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== DokuWiki - Upgrade DokuWiki ====== | ====== DokuWiki - Upgrade DokuWiki ====== | ||
+ | |||
+ | ===== Make a backup of your DokuWiki ===== | ||
<code bash> | <code bash> | ||
Line 5: | Line 7: | ||
</ | </ | ||
- | This will create the **dokuwiki-backup.tar.gz** backup. | + | <WRAP info> |
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Check for changes ===== | ||
+ | |||
+ | Read the [[https:// | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Download the new version ===== | ||
+ | |||
+ | Download the newest release from the download site. | ||
+ | |||
+ | <code bash> | ||
+ | cd ~ | ||
+ | wget http:// | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Unpack the distribution tarball ===== | ||
+ | |||
+ | <code bash> | ||
+ | tar zxvf dokuwiki-xxxx-xx-xx.tgz | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Upload/copy the files over your previous installation ===== | ||
+ | |||
+ | Make sure to overwrite all files when prompted. | ||
+ | |||
+ | <code bash> | ||
+ | ' | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Check copied files ownership and permissions ===== | ||
+ | |||
+ | <code bash> | ||
+ | <?php | ||
+ | |||
+ | if(function_exists(' | ||
+ | // use posix to get current uid and gid | ||
+ | $uid = posix_geteuid(); | ||
+ | $usr = posix_getpwuid($uid); | ||
+ | $user = $usr[' | ||
+ | $gid = posix_getegid(); | ||
+ | $grp = posix_getgrgid($gid); | ||
+ | $group = $grp[' | ||
+ | }else{ | ||
+ | // try to create a file and read it's ids | ||
+ | $tmp = tempnam ('/ | ||
+ | $uid = fileowner($tmp); | ||
+ | $gid = filegroup($tmp); | ||
+ | |||
+ | // try to run ls on it | ||
+ | $out = `ls -l $tmp`; | ||
+ | $lst = explode(' | ||
+ | $user = $lst[2]; | ||
+ | $group = $lst[3]; | ||
+ | unlink($tmp); | ||
+ | } | ||
+ | |||
+ | echo "Your PHP process seems to run with the UID $uid ($user) and the GID $gid ($group)\n"; | ||
+ | </ | ||
+ | |||
+ | |||
+ | Here are the most commonly used values for setting permissions on directories and files. | ||
+ | |||
+ | ^directories^files^result^ | ||
+ | |0700|0600|read/ | ||
+ | |0770|0660|read/ | ||
+ | |0777|0666|read/ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Delete all unused files ===== | ||
+ | |||
+ | <code bash> | ||
+ | grep -Ev ' | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Upgrade your template and plugins ===== | ||
+ | |||
+ | Upgrade your template and plugins if necessary. | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ |
dokuwiki/upgrade_dokuwiki.1583690439.txt.gz · Last modified: 2020/07/15 09:30 (external edit)