User Tools

Site Tools


servers:windows:nginx: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
servers:windows:nginx:dokuwiki [2025/02/16 14:42] Sean Rhoneservers:windows:nginx:dokuwiki [2025/05/07 23:12] (current) Sean Rhone
Line 7: Line 7:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[windows:11_ltsc|Windows 11]]+  * [[windows;10|Windows 10 (21H2)]]
   * [[servers;windows;nginx_php_php-cgi|nginx + PHP + PHP-CGI]]   * [[servers;windows;nginx_php_php-cgi|nginx + PHP + PHP-CGI]]
   * [[servers;windows;nginx;lets_encrypt|Certbot (Let's Encrypt)]]   * [[servers;windows;nginx;lets_encrypt|Certbot (Let's Encrypt)]]
Line 15: Line 15:
   * https://www.dokuwiki.org/requirements   * https://www.dokuwiki.org/requirements
   * https://www.dokuwiki.org/install:php   * https://www.dokuwiki.org/install:php
 +  * https://github.com/dokuwiki/dokuwiki/blob/master/composer.json
  
 ===== Git ===== ===== Git =====
  
-  * https://www.git-scm.com/download/win +  * https://gitforwindows.org
-  * Last tested: ''Git-2.48.1-64-bit.exe''+  * Last tested: ''Git-2.49.0-64-bit.exe''
  
   * Git from the command line and also from 3rd-party software   * Git from the command line and also from 3rd-party software
Line 29: Line 30:
   "%ProgramFiles%\Git\bin\git.exe" clone --branch "master" --depth "1" --recurse-submodules "https://github.com/splitbrain/dokuwiki.git" "%SystemDrive%\www\wiki"   "%ProgramFiles%\Git\bin\git.exe" clone --branch "master" --depth "1" --recurse-submodules "https://github.com/splitbrain/dokuwiki.git" "%SystemDrive%\www\wiki"
  
-  explorer "%SystemDrive%\www\wiki"+  "explorer.exe" "%SystemDrive%\www\wiki"
  
 ====== Environment ====== ====== Environment ======
Line 35: Line 36:
 ===== PHP ===== ===== PHP =====
  
-  notepad "%SystemDrive%\www\php\wiki.ini"+  "notepad.exe" "%SystemDrive%\www\php\wiki.ini"
  
 <code> <code>
Line 46: Line 47:
 extension = "mbstring" extension = "mbstring"
 extension = "openssl" extension = "openssl"
 +extension = "sodium"
 zend_extension = "opcache" zend_extension = "opcache"
  
Line 59: Line 61:
 ===== PHP-CGI ===== ===== PHP-CGI =====
  
-  * :!: ''fastcgi_params'' include hard-coded to nginx version path +  "notepad.exe" "%SystemDrive%\www\nginx\default.d\wiki.conf"
- +
-  notepad "%SystemDrive%\www\nginx\default.d\wiki.conf"+
  
 <code> <code>
Line 69: Line 69:
     fastcgi_intercept_errors "on";     fastcgi_intercept_errors "on";
     fastcgi_index "doku.php";     fastcgi_index "doku.php";
-    include "C:/nginx-1.27.4/conf/fastcgi_params";+    include "C:/www/nginx/conf/fastcgi_params";
     fastcgi_param "SCRIPT_FILENAME" $document_root$fastcgi_script_name;     fastcgi_param "SCRIPT_FILENAME" $document_root$fastcgi_script_name;
     fastcgi_param "PATH_INFO" $fastcgi_path_info;     fastcgi_param "PATH_INFO" $fastcgi_path_info;
Line 80: Line 80:
 ===== Server Block ===== ===== Server Block =====
  
-  notepad "%SystemDrive%\www\nginx\vhosts.d\wiki.conf"+  "notepad.exe" "%SystemDrive%\www\nginx\vhosts.d\wiki.conf"
  
 <code> <code>
Line 134: Line 134:
 ===== PHP-CGI ===== ===== PHP-CGI =====
  
-  notepad "%SystemDrive%\www\scripts\wiki\PHP-CGI.bat"+  "notepad.exe" "%SystemDrive%\www\scripts\wiki\PHP-CGI.bat"
  
 <code> <code>
Line 150: Line 150:
   * https://github.com/dokuwiki/dokuwiki/commits/master/   * https://github.com/dokuwiki/dokuwiki/commits/master/
  
-  notepad "%SystemDrive%\www\scripts\wiki\Update.bat"+  "notepad.exe" "%SystemDrive%\www\scripts\wiki\Update.bat"
  
 <code> <code>
Line 169: Line 169:
 ===== Back-up ===== ===== Back-up =====
  
-  notepad "%SystemDrive%\www\scripts\wiki\Back-up.bat"+  "notepad.exe" "%SystemDrive%\www\scripts\wiki\Back-up.bat"
  
 <code> <code>
Line 175: Line 175:
  
 :: User\Downloads :: User\Downloads
-tar -czf "%UserProfile%\Downloads\dokuwiki-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www\wiki" "data/pages" "data/meta" "data/media" "data/media_meta" "data/attic" "data/media_attic" "conf"+"tar.exe" -czf "%UserProfile%\Downloads\dokuwiki-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www\wiki" "data/pages" "data/meta" "data/media" "data/media_meta" "data/attic" "data/media_attic" "conf"
  
 :: NAS :: NAS
-::tar -czf "D:\Servers\Scheduled Backups\dokuwiki-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www\wiki" "data/pages" "data/meta" "data/media" "data/media_meta" "data/attic" "data/media_attic" "conf"+::"tar.exe" -czf "D:\Servers\Scheduled Backups\dokuwiki-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www\wiki" "data/pages" "data/meta" "data/media" "data/media_meta" "data/attic" "data/media_attic" "conf"
  
 :: End</code> :: End</code>
Line 187: Line 187:
  
 ===== Desktop ===== ===== Desktop =====
- 
-  * Right-click Desktop -> New -> Shortcut 
  
 ==== Update ==== ==== Update ====
Line 204: Line 202:
 ===== Autostart ===== ===== Autostart =====
  
-  explorer "%AppData%\Microsoft\Windows\Start Menu\Programs\StartUp"+==== CGI ==== 
 + 
 +  "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\StartUp"
  
   "%SystemDrive%\www\scripts\wiki\PHP-CGI.bat"   "%SystemDrive%\www\scripts\wiki\PHP-CGI.bat"
  
   Wiki PHP-CGI   Wiki PHP-CGI
 +
 +====== Task Scheduler ======
 +
 +****
 +
 +  taskschd.msc
 +
 +===== Update =====
 +
 +  * ''12:00:00 AM'' daily
 +
 +  Wiki Update
 +
 +  "%SystemDrive%\www\scripts\wiki\Update.bat"
 +
 +===== Back-up =====
 +
 +  * Time TODO
 +
 +  Wiki File Back-up
 +
 +  "%SystemDrive%\www\scripts\wiki\Back-up.bat"
  
 ====== Initial Setup ====== ====== Initial Setup ======
Line 221: Line 243:
   * Do after initial setup and check warning in Admin panel   * Do after initial setup and check warning in Admin panel
  
-  notepad "%SystemDrive%\www\nginx\vhosts.d\wiki.conf"+  "notepad.exe" "%SystemDrive%\www\nginx\vhosts.d\wiki.conf"
  
   "%SystemDrive%\www\scripts\nginx\Reload.bat"   "%SystemDrive%\www\scripts\nginx\Reload.bat"
Line 227: Line 249:
 ===== Admin ===== ===== Admin =====
  
-  * Configuration Settings -> DokuWiki -> Advanced -> userewrite: ''.htaccess''+  * DokuWiki -> Advanced -> ''userewrite'': ''.htaccess'' 
 +  * Links -> ''target»extern'': ''_tab''
  
 ==== Template Style Settings ==== ==== Template Style Settings ====
Line 241: Line 264:
   * This prevents -- from becoming a – (long hyphen) which breaks some command's syntax   * This prevents -- from becoming a – (long hyphen) which breaks some command's syntax
  
-  notepad "%SystemDrive%\www\wiki\conf\entities.local.conf"+  "notepad.exe" "%SystemDrive%\www\wiki\conf\entities.local.conf"
  
 <code>--      --</code> <code>--      --</code>
C:/www/wiki/data/attic/servers/windows/nginx/dokuwiki.1739734935.txt.gz · Last modified: by Sean Rhone