User Tools

Site Tools


dokuwiki:upgrade_dokuwiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dokuwiki:upgrade_dokuwiki [2022/06/30 18:12] 45.89.242.195dokuwiki:upgrade_dokuwiki [2025/04/29 13:19] (current) – [Re-enable security settings for Dokuwiki] peter
Line 9: Line 9:
 <WRAP info> <WRAP info>
 **NOTE:**  This will create the **dokuwiki-backup.tar.gz** backup. **NOTE:**  This will create the **dokuwiki-backup.tar.gz** backup.
 +
 +Alternatively, create a copy of the DokuWiki directory:  <code bash>
 +cd /var/www
 +cp -R dokuwiki dokuwiki-20250429
 +</code>
 +
 </WRAP> </WRAP>
  
Line 28: Line 34:
 wget http://.../dokuwiki-xxxx-xx-xx.tgz wget http://.../dokuwiki-xxxx-xx-xx.tgz
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:** The latest stable version can usually be downloaded.
 +
 +<code bash>
 +cd ~
 +wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
 +</code>
 +
 +Sometimes the stable version may be corrupt and does not extract okay.  
 +
 +  * In this case try to download a specified version.
 +  * Visit https://download.dokuwiki.org/archive
 +  * And then get the actual version needed:  <code bash>
 +wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-2024-02-06b.tgz
 +</code>
 +
 +
 +</WRAP>
 +
  
 ---- ----
Line 50: Line 76:
 **NOTE:**  The quotes on **cp** assure that it will run as is, even if an alias is set. **NOTE:**  The quotes on **cp** assure that it will run as is, even if an alias is set.
 </WRAP> </WRAP>
 +
 +----
 +
 +===== Set permissions for the updated files =====
 +
 +<code bash>
 +cd /var/www
 +chown -R www-data:www-data dokuwiki
 +</code>
 +
 +----
 +
 +===== Re-enable security settings for Dokuwiki =====
 +
 +Change directory to the Dokuwiki config directory.
 +
 +<code bash>
 +cd /var/www/dokuwiki/conf
 +</code>
 +
 +Edit the Dokuwiki config file, and set the **useacl** option to a 1.
 +
 +<file bash /var/www/dokuwiki/conf/dokuwiki.php>
 +...
 +
 +/* Authentication Settings */
 +$conf['useacl'     = 1;                //Use Access Control Lists to restrict access?
 +
 +...
 +</file>
 +
 +----
 +
 +===== Restart NginX =====
 +
 +<code bash>
 +systemctl restart nginx.service
 +</code>
  
  
dokuwiki/upgrade_dokuwiki.1656612750.txt.gz · Last modified: 2022/06/30 18:12 by 45.89.242.195

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki