| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| servers:windows:nginx:dokuwiki [2025/11/16 22:25] – Sean Rhone | servers:windows:nginx:dokuwiki [2025/11/29 02:28] (current) – [Back-up] Sean Rhone |
|---|
| extension = "openssl" | extension = "openssl" |
| extension = "sodium" | extension = "sodium" |
| | |
| | error_reporting = "~E_ALL" |
| | display_errors = "Off" |
| | log_errors = "Off" |
| |
| [Date] | [Date] |
| SET "PHP_FCGI_CHILDREN=1" | SET "PHP_FCGI_CHILDREN=1" |
| |
| START "Wiki PHP-CGI" "php-cgi.exe" -b "127.0.0.1:9002" -c "%SystemDrive%\www\php\wiki.ini" -q | START "Wiki PHP-CGI" /MIN "php-cgi.exe" -b "127.0.0.1:9002" -c "%SystemDrive%\www\php\wiki.ini" -q |
| |
| :: End</code> | :: End</code> |
| |
| ===== Back-up ===== | ===== Back-up ===== |
| | |
| | * ''D:\Servers\Scheduled Backups'' |
| |
| "notepad.exe" "%SystemDrive%\www\scripts\wiki\Back-up.bat" | "notepad.exe" "%SystemDrive%\www\scripts\wiki\Back-up.bat" |
| |
| :: User\Downloads | :: User\Downloads |
| "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" | ::"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.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" | "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> |
| @echo off | @echo off |
| |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\wiki" gc --aggressive --prune="all" | TITLE Wiki Maintenance |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\wiki" fsck --full --strict | |
| | CALL "%SystemDrive%\www\scripts\wiki\Git Fix.bat" |
| |
| :: End</code> | :: End</code> |
| <code> | <code> |
| @echo off | @echo off |
| | |
| | TITLE Wiki Git Fix |
| |
| RMDIR /S /Q "%SystemDrive%\www\wiki\.git" | RMDIR /S /Q "%SystemDrive%\www\wiki\.git" |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\wiki" gc --aggressive --prune="all" | "%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 | "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\wiki" fsck --full --strict |
| |
| PAUSE | |
| |
| :: End</code> | :: End</code> |
| ===== Autostart ===== | ===== Autostart ===== |
| |
| ==== CGI ==== | ==== PHP-CGI ==== |
| |
| "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\StartUp" | "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\StartUp" |