servers:linux:nginx:piwigo
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
servers:linux:nginx:piwigo [2025/09/11 08:12] – [Database] Sean Rhone | servers:linux:nginx:piwigo [2025/10/16 23:22] (current) – [Database] Sean Rhone | ||
---|---|---|---|
Line 37: | Line 37: | ||
* https:// | * https:// | ||
- | sudo git clone --branch ' | + | sudo git clone --branch ' |
- | sudo git clone --branch ' | + | sudo git clone --branch ' |
====== Database ====== | ====== Database ====== | ||
Line 51: | Line 51: | ||
GRANT ALL PRIVILEGES ON piwigo.* to ' | GRANT ALL PRIVILEGES ON piwigo.* to ' | ||
- | FLUSH PRIVILEGES; | + | FLUSH PRIVILEGES; |
- | + | ||
- | | + | |
====== nginx + PHP-FPM Configuration ====== | ====== nginx + PHP-FPM Configuration ====== | ||
Line 83: | Line 81: | ||
; General | ; General | ||
+ | php_value[log_errors] = " | ||
+ | php_value[error_reporting] = " | ||
php_value[date.timezone] = " | php_value[date.timezone] = " | ||
php_value[max_execution_time] = " | php_value[max_execution_time] = " | ||
Line 246: | Line 246: | ||
# End</ | # End</ | ||
- | |||
- | ===== Maintenance ===== | ||
- | |||
- | ==== Service ==== | ||
- | |||
- | sudo -e '/ | ||
- | |||
- | < | ||
- | [Service] | ||
- | User=wwwrun | ||
- | Group=www | ||
- | Type=oneshot | ||
- | |||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | |||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | |||
- | ExecStartPost='/ | ||
- | |||
- | # End</ | ||
- | |||
- | ==== Timer ==== | ||
- | |||
- | * '' | ||
- | |||
- | sudo -e '/ | ||
- | |||
- | < | ||
- | [Unit] | ||
- | Description=Piwigo Maintenance | ||
- | After=network-online.target | ||
- | Wants=network-online.target | ||
- | |||
- | [Timer] | ||
- | OnCalendar=*-*-01 01:30:00 | ||
- | Persistent=true | ||
- | |||
- | [Install] | ||
- | WantedBy=timers.target | ||
- | |||
- | # End</ | ||
- | |||
- | sudo systemctl start ' | ||
===== Backup ===== | ===== Backup ===== | ||
Line 378: | Line 333: | ||
# End</ | # End</ | ||
+ | |||
+ | ===== Maintenance ===== | ||
+ | |||
+ | ==== Service ==== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | < | ||
+ | [Service] | ||
+ | User=wwwrun | ||
+ | Group=www | ||
+ | Type=oneshot | ||
+ | |||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | |||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | |||
+ | ExecStartPost='/ | ||
+ | |||
+ | # End</ | ||
+ | |||
+ | ==== Timer ==== | ||
+ | |||
+ | * '' | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | < | ||
+ | [Unit] | ||
+ | Description=Piwigo Maintenance | ||
+ | After=network-online.target | ||
+ | Wants=network-online.target | ||
+ | |||
+ | [Timer] | ||
+ | OnCalendar=*-*-01 01:30:00 | ||
+ | Persistent=true | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=timers.target | ||
+ | |||
+ | # End</ | ||
+ | |||
+ | sudo systemctl start ' | ||
====== Backup ====== | ====== Backup ====== | ||
Line 435: | Line 437: | ||
sudo mariadb ' | sudo mariadb ' | ||
- | ===== dos2unix | + | ===== Git Fix ===== |
- | **** | + | |
+ | |||
+ | sudo su ' | ||
+ | |||
+ | rm -Rf '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | ==== Bootstrap Darkroom ==== | ||
+ | |||
+ | | ||
+ | |||
+ | rm -Rf '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
+ | |||
+ | git -C '/ | ||
- | | + | |
===== MySQL Connection ===== | ===== MySQL Connection ===== | ||
Line 460: | Line 508: | ||
rm -fv ~/' | rm -fv ~/' | ||
- | |||
- | ====== Old Restore ====== | ||
- | |||
- | ===== Client ===== | ||
- | |||
- | ==== Uncompress Database ==== | ||
- | |||
- | * This is only needed if restoring an **automated** database backup ((manual doesn' | ||
- | |||
- | gunzip ~/' | ||
/srv/www/wiki/data/attic/servers/linux/nginx/piwigo.1757592766.txt.gz · Last modified: by Sean Rhone