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/10/02 16:58] – [Git Fix] Sean Rhoneservers:windows:nginx:dokuwiki [2025/10/10 07:49] (current) Sean Rhone
Line 7: Line 7:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[windows:10|Windows 10 (21H2)]]+  * [[windows;11_ltsc_server|Windows 11 (24H2)]]
   * [[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 46: Line 46:
 ; End</code> ; End</code>
  
-<code>"php.exe" -c "%SystemDrive%\www\php\wiki.ini" -m</code>+  "php.exe" -c "%SystemDrive%\www\php\wiki.ini" -m
  
 ====== nginx + PHP-CGI Configuration ====== ====== nginx + PHP-CGI Configuration ======
Line 117: Line 117:
  
 ====== Scripts ====== ====== Scripts ======
- 
-**** 
  
   MKDIR "%SystemDrive%\www\scripts\wiki"   MKDIR "%SystemDrive%\www\scripts\wiki"
 +
 +  "explorer.exe" "%SystemDrive%\www\scripts\wiki"
  
 ===== PHP-CGI ===== ===== PHP-CGI =====
Line 127: Line 127:
  
 <code> <code>
 +@echo off
 +
 SET "PHP_FCGI_MAX_REQUESTS=0" SET "PHP_FCGI_MAX_REQUESTS=0"
 SET "PHP_FCGI_CHILDREN=1" SET "PHP_FCGI_CHILDREN=1"
Line 143: Line 145:
 @echo off @echo off
  
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\wiki" reset --hard +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\wiki" pull origin "master"
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\wiki" pull origin "master" --rebase +
- +
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\wiki" gc --aggressive --prune="all" +
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\wiki" fsck --full --strict +
- +
-"php.exe" "%SystemDrive%\www\wiki\bin\indexer.php" --clear+
  
 :: End</code> :: End</code>
Line 156: Line 152:
  
 ===== Back-up ===== ===== Back-up =====
- 
-  * :!: TODO: Might max system drive usage on daily task if not manually managed; NAS probably fine, but test script with NAS disconnected 
  
   "notepad.exe" "%SystemDrive%\www\scripts\wiki\Back-up.bat"   "notepad.exe" "%SystemDrive%\www\scripts\wiki\Back-up.bat"
Line 173: Line 167:
  
   "%SystemDrive%\www\scripts\wiki\Back-up.bat"   "%SystemDrive%\www\scripts\wiki\Back-up.bat"
 +
 +===== Maintenance =====
 +
 +  "notepad.exe" "%SystemDrive%\www\scripts\wiki\Maintenance.bat"
 +
 +<code>
 +@echo off
 +
 +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\wiki" reset --hard
 +
 +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\wiki" gc --aggressive --prune="all"
 +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\wiki" fsck --full --strict
 +
 +"php.exe" "%SystemDrive%\www\wiki\bin\indexer.php" --clear
 +
 +:: End</code>
 +
 +  "%SystemDrive%\www\scripts\wiki\Maintenance.bat"
  
 ===== Git Fix ===== ===== Git Fix =====
Line 204: Line 216:
  
 ====== Shortcuts ====== ====== Shortcuts ======
- 
-===== Desktop ===== 
- 
-==== Update ==== 
- 
-  "%SystemDrive%\www\scripts\wiki\Update.bat" 
- 
-  Wiki Update 
- 
-==== Back-up ==== 
- 
-  "%SystemDrive%\www\scripts\wiki\Back-up.bat" 
- 
-  Wiki Back-up 
  
 ===== Autostart ===== ===== Autostart =====
Line 245: Line 243:
 ===== Back-up ===== ===== Back-up =====
  
-  * ''12:15:00 AM'' daily+  * Weekly -> Recur every ''1'' weeks on ''Monday'' 
 +  * ''12:15:00 AM''
  
   Wiki File Back-up   Wiki File Back-up
  
   "%SystemDrive%\www\scripts\wiki\Back-up.bat"   "%SystemDrive%\www\scripts\wiki\Back-up.bat"
 +
 +===== Maintenance =====
 +
 +  * Monthly -> All months -> Days: ''1''
 +  * ''12:30:00 AM''
 +
 +  Wiki Maintenance
 +
 +  "%SystemDrive%\www\scripts\wiki\Maintenance.bat"
  
 ====== Initial Setup ====== ====== Initial Setup ======
Line 295: Line 303:
   "tar.exe" -czf "%UserProfile%\Downloads\dokuwiki-files-manual-%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-manual-%RANDOM%.tar.gz" -C "%SystemDrive%\www\wiki" "data/pages" "data/meta" "data/media" "data/media_meta" "data/attic" "data/media_attic" "conf"
  
-====== Quick Commands ======+====== TODOs ====== 
 + 
 +  * https://www.dokuwiki.org/plugin:searchindex 
 +  * https://www.dokuwiki.org/interwiki
  
 ===== Find Orphaned Pages ===== ===== Find Orphaned Pages =====
Line 304: Line 315:
  
   "php.exe" "%SystemDrive%\www\wiki\bin\wantedpages.php" --help   "php.exe" "%SystemDrive%\www\wiki\bin\wantedpages.php" --help
- 
-===== Scripts ===== 
- 
-**** 
- 
-  "explorer.exe" "%SystemDrive%\www\scripts\wiki" 
- 
-===== Bookmarks ===== 
- 
-  * https://github.com/dokuwiki/dokuwiki/commits/master/ 
- 
-====== TODOs ====== 
- 
-  * https://www.dokuwiki.org/plugin:searchindex 
-  * https://www.dokuwiki.org/interwiki 
  
/usr/local/www/wiki/data/attic/servers/windows/nginx/dokuwiki.1759438708.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki