User Tools

Site Tools


servers:windows:nginx:piwigo

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:piwigo [2025/11/18 22:05] Sean Rhoneservers:windows:nginx:piwigo [2025/11/29 00:43] (current) – [Back-up] Sean Rhone
Line 57: Line 57:
 extension = "mbstring" extension = "mbstring"
 extension = "mysqli" extension = "mysqli"
 +
 +error_reporting = "~E_ALL"
 +display_errors = "Off"
 +log_errors = "Off"
  
 post_max_size = "100M" post_max_size = "100M"
Line 147: Line 151:
 SET "PHP_FCGI_CHILDREN=1" SET "PHP_FCGI_CHILDREN=1"
  
-START "Media PHP-CGI" "php-cgi.exe" -b "127.0.0.1:9003" -c "%SystemDrive%\www\php\media.ini" -q+START "Media PHP-CGI" /MIN "php-cgi.exe" -b "127.0.0.1:9003" -c "%SystemDrive%\www\php\media.ini" -q
  
 :: End</code> :: End</code>
Line 174: Line 178:
 ===== Back-up ===== ===== Back-up =====
  
-  * TODO+  * ''D:\Servers\Scheduled Backups''
  
   "notepad.exe" "%SystemDrive%\www\scripts\media\Back-up.bat"   "notepad.exe" "%SystemDrive%\www\scripts\media\Back-up.bat"
Line 180: Line 184:
 <code> <code>
 @echo off @echo off
 +
 +TITLE Media Back-up
  
 :: 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\piwigo-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "media" 
 +::"%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe-u "root--opt -r "%UserProfile%\Downloads\%RANDOM%-piwigo.sql" "piwigo"
  
 :: 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\piwigo-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "media" 
 +"%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe-u "root--opt -r "D:\Servers\Scheduled Backups\%RANDOM%-piwigo.sql" "piwigo"
  
 :: End</code> :: End</code>
Line 200: Line 208:
 TITLE Media Maintenance TITLE Media Maintenance
  
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" gc --aggressive --prune="all" +CALL "%SystemDrive%\www\scripts\media\Git Fix.bat"
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" fsck --full --strict +
- +
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" gc --aggressive --prune="all" +
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroomfsck --full --strict+
  
 :: End</code> :: End</code>
Line 219: Line 223:
 @echo off @echo off
  
-:: Piwigo+TITLE Media Git Fix 
 RMDIR /S /Q "%SystemDrive%\www\media\.git" RMDIR /S /Q "%SystemDrive%\www\media\.git"
  
Line 234: Line 239:
 "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" fsck --full --strict "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" fsck --full --strict
  
-:: Bootstrap Darkroom 
 RMDIR /S /Q "%SystemDrive%\www\media\themes\bootstrap_darkroom\.git" RMDIR /S /Q "%SystemDrive%\www\media\themes\bootstrap_darkroom\.git"
  
Line 248: Line 252:
 "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" gc --aggressive --prune="all" "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" gc --aggressive --prune="all"
 "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" fsck --full --strict "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" fsck --full --strict
- 
-PAUSE 
  
 :: End</code> :: End</code>
Line 259: Line 261:
 ===== Autostart ===== ===== Autostart =====
  
-==== CGI ====+==== PHP-CGI ====
  
   "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\StartUp"   "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\StartUp"
Line 275: Line 277:
 ===== Update ===== ===== Update =====
  
-  * ''01:00:00 AM'' daily+  * ''1:00:00 AM'' daily
  
   Media Update   Media Update
Line 283: Line 285:
 ===== Back-up ===== ===== Back-up =====
  
-  * Weekly -> Recur every ''1'' weeks on ''Monday'' +  * Monthly -> All months -> Days: ''2'' 
-  * ''12:15:00 AM''+  * ''1:15:00 AM''
  
-  Wiki File Back-up+  Media Back-up
  
   "%SystemDrive%\www\scripts\media\Back-up.bat"   "%SystemDrive%\www\scripts\media\Back-up.bat"
Line 292: Line 294:
 ===== Maintenance ===== ===== Maintenance =====
  
-  * Monthly -> All months -> Days: ''1'' +  * Monthly -> All months -> Days: ''2'' 
-  * ''12:30:00 AM''+  * ''1:30:00 AM''
  
-  Wiki Maintenance+  Media Maintenance
  
   "%SystemDrive%\www\scripts\media\Maintenance.bat"   "%SystemDrive%\www\scripts\media\Maintenance.bat"
Line 333: Line 335:
  
 // Hide PHP Warnings // Hide PHP Warnings
-$conf['show_php_errors'] = E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_WARNING;+$conf['show_php_errors'] = '0';
  
 // Header Links // Header Links
/var/www/wiki/data/attic/servers/windows/nginx/piwigo.1763521538.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