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/09/27 08:52] Sean Rhoneservers:windows:nginx:piwigo [2025/10/10 07:33] (current) Sean Rhone
Line 8: Line 8:
 ===== 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)]]
   * [[programs;windows;git|Git]]   * [[programs;windows;git|Git]]
   * [[servers;windows;mariadb|MariaDB]]   * [[servers;windows;mariadb|MariaDB]]
- 
-===== TODOs ===== 
- 
-  * Show title on pictures (long titles get cut-off in navbar) 
-  * AI ([[https://piwigo.org/forum/viewtopic.php?pid=192438#p192438|post]], [[https://github.com/Piwigo/Piwigo/commits/master/include/config_default.inc.php|config.inc.php]]) 
  
 ====== Dependencies ====== ====== Dependencies ======
  
   * https://piwigo.org/guides/install/requirements   * https://piwigo.org/guides/install/requirements
 +  * https://github.com/Piwigo/piwigo-videojs/wiki/How-to-add-videos
 +  * https://github.com/Piwigo/piwigo-videojs/wiki/Synchronize#requirement
  
 ====== Download Source ====== ====== Download Source ======
Line 137: Line 134:
  
 ===== Folder ===== ===== Folder =====
- 
-**** 
  
   MKDIR "%SystemDrive%\www\scripts\media"   MKDIR "%SystemDrive%\www\scripts\media"
 +
 +  "explorer.exe" "%SystemDrive%\www\scripts\media"
  
 ===== PHP-CGI ===== ===== PHP-CGI =====
Line 147: Line 144:
  
 <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 159: Line 158:
  
   "notepad.exe" "%SystemDrive%\www\scripts\media\Update.bat"   "notepad.exe" "%SystemDrive%\www\scripts\media\Update.bat"
 +
 +<code>
 +@echo off
 +
 +:: Piwigo
 +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" pull origin "master"
 +
 +:: Bootstrap Darkroom
 +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" pull origin "master"
 +
 +:: End</code>
 +
 +  "%SystemDrive%\www\scripts\media\Update.bat"
 +
 +===== Back-up =====
 +
 +  * TODO
 +
 +  "notepad.exe" "%SystemDrive%\www\scripts\media\Back-up.bat"
 +
 +<code>
 +@echo off
 +
 +:: 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"
 +
 +:: 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"
 +
 +:: End</code>
 +
 +  "%SystemDrive%\www\scripts\media\Back-up.bat"
 +
 +===== Maintenance =====
 +
 +  "notepad.exe" "%SystemDrive%\www\scripts\media\Maintenance.bat"
  
 <code> <code>
Line 165: Line 200:
 :: Piwigo :: Piwigo
 "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" reset --hard "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" reset --hard
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" pull origin "master" --rebase 
  
 "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" gc --aggressive --prune="all" "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" gc --aggressive --prune="all"
Line 172: Line 206:
 :: Bootstrap Darkroom :: Bootstrap Darkroom
 "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" reset --hard "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" reset --hard
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" pull origin "master" --rebase 
  
 "%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"
Line 179: Line 212:
 :: End</code> :: End</code>
  
-  "%SystemDrive%\www\scripts\media\Update.bat"+  "%SystemDrive%\www\scripts\media\Maintenance.bat"
  
 ===== Git Fix ===== ===== Git Fix =====
  
-  * :!: Set email for ''user.email'' +  * :!: Set email for both ''user.email''
-  * :!: TODO+
  
-  "notepad.exe" "%SystemDrive%\www\scripts\main\Git Fix.bat"+  "notepad.exe" "%SystemDrive%\www\scripts\media\Git Fix.bat"
  
 <code> <code>
 @echo off @echo off
  
-RMDIR /S /Q "%SystemDrive%\www\main\.git"+:: Piwigo 
 +RMDIR /S /Q "%SystemDrive%\www\media\.git"
  
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" init --initial-branch="5.4-dev+"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" init --initial-branch="master
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" add "." +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" add "." 
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" config "user.email" "espionage724@x" +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" config "user.email" "espionage724@x" 
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" commit --message="x"+"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" commit --message="x"
  
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" remote add "origin" "https://github.com/joomla/joomla-cms.git" +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" remote add "origin" "https://github.com/Piwigo/Piwigo.git" 
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" pull --depth "1" --recurse-submodules "origin" "5.4-dev" --rebase +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" pull --depth "1" --recurse-submodules "origin" "master" --rebase 
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" reset --hard "origin/5.4-dev"+"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" reset --hard "origin/master"
  
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" gc --aggressive --prune="all" +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" gc --aggressive --prune="all" 
-"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" fsck --full --strict+"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" fsck --full --strict
  
-PAUSE+:: Bootstrap Darkroom 
 +RMDIR /S /Q "%SystemDrive%\www\media\themes\bootstrap_darkroom\.git"
  
-:: End</code>+"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" init --initial-branch="master" 
 +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" add "." 
 +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" config "user.email" "espionage724@x" 
 +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" commit --message="x"
  
-  "%SystemDrive%\www\scripts\main\Git Fix.bat"+"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" remote add "origin" "https://github.com/Piwigo/piwigo-bootstrap-darkroom.git" 
 +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" pull --depth "1" --recurse-submodules "origin" "master" --rebase 
 +"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" reset --hard "origin/master"
  
-====== Shortcuts ======+"%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
  
-===== Desktop =====+PAUSE
  
-==== Update ====+:: End</code>
  
-  "%SystemDrive%\www\scripts\media\Update.bat"+  "%SystemDrive%\www\scripts\media\Git Fix.bat"
  
-  Media Update+====== Shortcuts ======
  
 ===== Autostart ===== ===== Autostart =====
Line 244: Line 284:
  
   "%SystemDrive%\www\scripts\media\Update.bat"   "%SystemDrive%\www\scripts\media\Update.bat"
 +
 +===== Back-up =====
 +
 +  * Weekly -> Recur every ''1'' weeks on ''Monday''
 +  * ''12:15:00 AM''
 +
 +  Wiki File Back-up
 +
 +  "%SystemDrive%\www\scripts\media\Back-up.bat"
 +
 +===== Maintenance =====
 +
 +  * Monthly -> All months -> Days: ''1''
 +  * ''12:30:00 AM''
 +
 +  Wiki Maintenance
 +
 +  "%SystemDrive%\www\scripts\media\Maintenance.bat"
  
 ====== Initial Setup ====== ====== Initial Setup ======
Line 342: Line 400:
   "%ProgramFiles%\MariaDB 12.1\bin\mariadb.exe" -u "root" -p "piwigo" < "%UserProfile%\Downloads\piwigo.sql"   "%ProgramFiles%\MariaDB 12.1\bin\mariadb.exe" -u "root" -p "piwigo" < "%UserProfile%\Downloads\piwigo.sql"
  
-====== Quick Commands ======+====== TODOs ======
  
-===== Scripts ===== +  Show title on pictures (long titles get cut-off in navbar) 
- +  * AI ([[https://piwigo.org/forum/viewtopic.php?pid=192438#p192438|post]], [[https://github.com/Piwigo/Piwigo/commits/master/include/config_default.inc.php|config.inc.php]])
-**** +
- +
-  "explorer.exe" "%SystemDrive%\www\scripts\media" +
- +
-===== Bookmarks ===== +
- +
-  * https://github.com/Piwigo/Piwigo/commits/master/ +
-  * https://github.com/Piwigo/piwigo-bootstrap-darkroom/commits/master/+
  
/usr/local/www/wiki/data/attic/servers/windows/nginx/piwigo.1758977528.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