User Tools

Site Tools


synology:dokuwiki-dsm7

Differences

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

Link to this comparison view

Next revision
Previous revision
synology:dokuwiki-dsm7 [2023/01/30 00:56] – created Wulf Rajeksynology:dokuwiki-dsm7 [2023/05/29 11:55] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Synology NAS ======+====== DokuWiki Synology DSM7 ======
  
 Synology's NAS system used to provide a DokuWiki package in their package manager. Since the DSM 7.0 release, this is no longer the case. Instead you need to manually install DokuWiki using the Web Station app. Synology's NAS system used to provide a DokuWiki package in their package manager. Since the DSM 7.0 release, this is no longer the case. Instead you need to manually install DokuWiki using the Web Station app.
Line 10: Line 10:
 **On DSM:** **On DSM:**
 Package Center: Install Web Station  Package Center: Install Web Station 
-  * Use Apache Web Server for DokuWiki (//**recommended**//):  
-    * //**__Note:__** Restricting access to DokuWiki's "secure directories" (data, conf, bin, inc, vendor; see  [[:security#web_access_security|here]]) with the default Web Server in DSM7 »**nginx**« is not straight forward. Following the instructions on **[[:security#deny_directory_access_in_nginx|Deny Directory Access in Ngnx]] __did not prevent access__** to files in data subdirectories. while this works out-of-the-box using Apache.// => => => => 
   * Install Apache 2.4 via the Package Center \\ //Hint: go to Web Station Status Panel and click the Arrow in Management Column, this will bring you to the Apache Install Package in Package Center//   * Install Apache 2.4 via the Package Center \\ //Hint: go to Web Station Status Panel and click the Arrow in Management Column, this will bring you to the Apache Install Package in Package Center//
- +  * Install PHP 7.4 via the Package Center \\ //Hint: go to Web Station Status Panel and click the Arrow in Management Column, this will bring you to the PHP Install Package in Package Center//
-  * Install PHP 7 (.2, .3 or .4via the Package Center \\ //Hint: go to Web Station Status Panel and click the Arrow in Management Column, this will bring you to the PHP Install Package in Package Center//+
  
 {{https://i.ibb.co/7Q95ZmZ/2021-08-09-15h56-20.png?600|Web Station Status Pane}} {{https://i.ibb.co/7Q95ZmZ/2021-08-09-15h56-20.png?600|Web Station Status Pane}}
  
-In Web Station this will create a costumized Profile under "Script Language Settings" with name 'user-defined'+In Web Station this will create a customized Profile under "Script Language Settings" with name 'user-defined'
   * Edit the Profile and activate the following Extensions:   * Edit the Profile and activate the following Extensions:
     * bz2     * bz2
Line 84: Line 81:
 It is the same procedure as for a [[install:synology#installing_dokuwiki_on_dsm_70|complete new installation]]. Only the backup of the data is added and the procedure for this is described. It is the same procedure as for a [[install:synology#installing_dokuwiki_on_dsm_70|complete new installation]]. Only the backup of the data is added and the procedure for this is described.
  
-  - Install the Backup Tool Plugin straight from the plugin manager of your existing DokuWiki install and make a backup from the admin page (tab every box for backup to be sure). Save the .tar archive to a other location than your Synology. 
   - To be extra save; copy the nas/DokuWiki folder from your Synology to a other location.   - To be extra save; copy the nas/DokuWiki folder from your Synology to a other location.
   - Delete the DokuWiki package with the Package Center.   - Delete the DokuWiki package with the Package Center.
   - Upgrade to DSM 7 (see instructions on the official Synology site)   - Upgrade to DSM 7 (see instructions on the official Synology site)
-  - Go to Webstation in DSM -> PHP Setting (scripttaalinstellingen in my native language) -> Create/Make -> Profile name: Dokuwiki -> Profile description: Dokuwiki -> PHP version: PHP 7.4 -> Save/Ok. +  - Go to Webstation in DSM -> PHP Setting (scripttaalinstellingen in my native language) -> Create/Make -> Profile name: Dokuwiki -> Profile description: Dokuwiki -> PHP version: PHP 7.4 -> enable Extensions: bz2, gd, openssl and zlib and click Save/Ok. 
-  - Go to Webserviceportal (still in Webstation) and choose for HTTP back-endserver: Apache HTTP Server 2.2 (because of the permissions) and PHP: Dokuwiki (PHP 7.4.) -> Save. +  - Go to Webserviceportal (still in Webstation) and choose for HTTP back-endserver: Apache HTTP Server 2.and PHP: Dokuwiki (PHP 7.4.) -> Save. 
-  - Go to the tab Extensions and enable: openssl and zlib and click Save +  - copy dokuwiki folder back into web directory
-  - Go to File Station and navigate to web -> dokuwiki folder. Rightclick on the folder: data -> Properties -> Permissions -> Make -> Choose for user "http" -> and check Write (which will check all underlying boxes) and choose: Save/Ok +
-  - Do the same for the folders: conf and lib/plugins and lib/tpl. +
-  - Download the stable: 2020-07-29 "Hogfather" release here (this is the same version as the latest Synology package for DMS 6, if in the meantime a new version is out, download this one from the DokuWiki archive. +
-  - Extract this archive to the web folder (default name and location: web/dokuwiki) +
-  - Run the installer (from /web/dokuwiki/install.php) and just use your existing info or something else, these setting will be overwritten from the backup in the next step. +
-  - Install the Backup Tool Plugin straight from the plugin manager for this new clean version. +
-  - Open the backup .tar archive made in step 1 (use an archive manager like 7 zip) and copy over the folders: conf, data and lib to the web/dokuwiki folder overwriting any possibly existing files. +
-  - Delete /web/dokuwiki/install.php file and check if this file is not accessible from the internet: https://yournasadres/dokuwiki/data/pages/wiki/dokuwiki.txt. If it is than doublecheck your permissions.+
  
-Thanks to [[https://forum.dokuwiki.org/u/DokuwikiSyno|DokuwikiSyno]] for this guide. 
 ===== See also ===== ===== See also =====
  
synology/dokuwiki-dsm7.1675040176.txt.gz · Last modified: (external edit)