| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| servers:linux:nginx:piwigo [2025/12/22 03:20] – [config.inc.php] Sean Rhone | servers:linux:nginx:piwigo [2026/05/01 05:24] (current) – [PHP-FPM Socket] Sean Rhone |
|---|
| ===== Prerequisites ===== | ===== Prerequisites ===== |
| |
| * [[linux:distros:server:ubuntu_server|Ubuntu Server]] | * [[linux:distros:server:opensuse_tumbleweed_server|openSUSE Tumbleweed (Server)]] |
| * [[servers:linux:nginx_php_php-fpm|nginx + PHP + PHP-FPM]] | * [[servers:linux:nginx_php_php-fpm|nginx + PHP + PHP-FPM]] |
| * [[servers:linux:nginx:lets_encrypt|Certbot (Let's Encrypt)]] | * [[servers:linux:nginx:lets_encrypt|Certbot (Let's Encrypt)]] |
| |
| * 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 |
| * https://github.com/Piwigo/piwigo-videojs/wiki/Synchronize#requirement | * https://github.com/Piwigo/piwigo-videojs/wiki/Synchronize#requirement |
| |
| sudo apt install php-imagick php-intl php-mbstring php-mysql libimage-exiftool-perl mediainfo ffmpeg | sudo zypper install php8-gd php8-exif php8-mbstring php8-mysql |
| |
| ====== Download Source ====== | ====== Download Source ====== |
| * https://github.com/Piwigo/piwigo-bootstrap-darkroom/commits/master/ | * https://github.com/Piwigo/piwigo-bootstrap-darkroom/commits/master/ |
| |
| sudo git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/Piwigo/Piwigo.git' '/var/www/media' && sudo chown -R 'www-data':'www-data' '/var/www/media' && sudo chmod -R '0755' '/var/www/media' | sudo git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/Piwigo/Piwigo.git' '/srv/www/media' && sudo chown -R 'wwwrun':'www' '/srv/www/media' && sudo chmod -R '0755' '/srv/www/media' |
| |
| sudo git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/Piwigo/piwigo-bootstrap-darkroom.git' '/var/www/media/themes/bootstrap_darkroom' && sudo chown -R 'www-data':'www-data' '/var/www/media/themes' && sudo chmod -R '0755' '/var/www/media/themes' | sudo git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/Piwigo/piwigo-bootstrap-darkroom.git' '/srv/www/media/themes/bootstrap_darkroom' && sudo chown -R 'wwwrun':'www' '/srv/www/media/themes' && sudo chmod -R '0755' '/srv/www/media/themes' |
| |
| ====== Database ====== | ====== Database ====== |
| ===== PHP-FPM Socket ===== | ===== PHP-FPM Socket ===== |
| |
| sudo -e '/etc/php/8.4/fpm/pool.d/media.conf' && sudo systemctl restart 'php8.4-fpm' | sudo -e '/etc/php8/fpm/php-fpm.d/media.conf' && sudo systemctl restart 'php-fpm' |
| |
| <code> | <code> |
| [media] | [media] |
| | user = "wwwrun" |
| | group = "www" |
| |
| ; User/Group | listen = "/run/php-fpm/media.sock" |
| user = "www-data" | listen.owner = "wwwrun" |
| group = "www-data" | listen.group = "www" |
| | |
| ; Socket | |
| listen = "/run/php/media.sock" | |
| listen.owner = "www-data" | |
| listen.group = "www-data" | |
| listen.mode = "0662" | listen.mode = "0662" |
| |
| ; Process Management | |
| pm = "ondemand" | pm = "ondemand" |
| pm.max_children = "4" | pm.max_children = "4" |
| pm.process_idle_timeout = "30" | pm.process_idle_timeout = "30" |
| |
| ; Logging | |
| php_value[log_errors] = "0" | php_value[log_errors] = "0" |
| php_value[error_reporting] = "~E_ALL" | php_value[error_reporting] = "~E_ALL" |
| | php_value[display_errors] = "0" |
| | php_value[display_startup_errors] = "0" |
| | php_value[html_errors] = "0" |
| |
| ; General | php_value[session.save_path] = "/var/lib/php8/sessions" |
| php_value[date.timezone] = "America/New_York" | php_value[date.timezone] = "America/New_York" |
| |
| ; Piwigo | |
| php_value[max_execution_time] = "200" | php_value[max_execution_time] = "200" |
| php_value[memory_limit] = "512M" | php_value[memory_limit] = "512M" |
| php_value[post_max_size] = "100M" | php_value[post_max_size] = "100M" |
| php_value[upload_max_filesize] = "20M" | php_value[upload_max_filesize] = "100M" |
| php_value[max_file_uploads] = "100" | php_value[max_file_uploads] = "100" |
| |
| ===== FastCGI ===== | ===== FastCGI ===== |
| |
| sudo -e '/etc/nginx/snippets/media.conf' | sudo -e '/etc/nginx/default.d/media.conf' |
| |
| <code> | <code> |
| location '~' '\.(php|phar)(/.*)?$' { | location '~' '\.(php|phar)(/.*)?$' { |
| | fastcgi_split_path_info '^(.+\.(?:php|phar))(/.*)$'; |
| fastcgi_split_path_info '^(.+\.(?:php|phar))(/.*)$'; | fastcgi_intercept_errors 'on'; |
| fastcgi_intercept_errors 'on'; | fastcgi_index 'index.php'; |
| fastcgi_index 'index.php'; | include 'fastcgi_params'; |
| include 'fastcgi_params'; | fastcgi_param 'SCRIPT_FILENAME' '$document_root$fastcgi_script_name'; |
| fastcgi_param 'SCRIPT_FILENAME' '$document_root$fastcgi_script_name'; | fastcgi_param 'PATH_INFO' '$fastcgi_path_info'; |
| fastcgi_param 'PATH_INFO' '$fastcgi_path_info'; | fastcgi_param 'HTTPS' 'on'; |
| fastcgi_param 'HTTPS' 'on'; | fastcgi_pass 'unix:/run/php-fpm/media.sock'; |
| | } |
| fastcgi_pass 'unix:/run/php/media.sock'; | |
| | |
| } | |
| |
| # End</code> | # End</code> |
| ===== Server Block ===== | ===== Server Block ===== |
| |
| sudo -e '/etc/nginx/sites-available/media.conf' | sudo -e '/etc/nginx/vhosts.d/media.conf' && sudo systemctl reload 'nginx' |
| |
| <code> | <code> |
| server { | server { |
| |
| listen '443' 'ssl'; | listen '443' 'ssl'; |
| http2 'on'; | http2 'on'; |
| server_name 'media.realmofespionage.xyz'; | server_name 'media.realmofespionage.xyz'; |
| root '/var/www/media'; | root '/srv/www/media'; |
| index 'index.php'; | index 'index.php'; |
| |
| include '/etc/nginx/snippets/media.conf'; | include '/etc/nginx/default.d/media.conf'; |
| include '/etc/nginx/snippets/headers.conf'; | include '/etc/nginx/default.d/headers.conf'; |
| |
| client_max_body_size '100M'; | client_max_body_size '100M'; |
| rewrite '^/i((/|$).*)$' '/i.php$1' 'last'; | rewrite '^/i((/|$).*)$' '/i.php$1' 'last'; |
| } | } |
| |
| } | } |
| |
| # End</code> | # End</code> |
| |
| sudo ln -s -f '/etc/nginx/sites-available/media.conf' '/etc/nginx/sites-enabled/media.conf' && sudo systemctl reload 'nginx' | |
| |
| ====== Initial Setup ====== | ====== Initial Setup ====== |
| * [[https://github.com/Piwigo/Piwigo/blob/master/include/config_default.inc.php|More Settings]] | * [[https://github.com/Piwigo/Piwigo/blob/master/include/config_default.inc.php|More Settings]] |
| |
| sudo -u 'www-data' -e '/var/www/media/local/config/config.inc.php' | sudo -e '/srv/www/media/local/config/config.inc.php' && sudo chown -v 'wwwrun':'www' '/srv/www/media/local/config/config.inc.php' |
| |
| <code> | <code> |
| $conf['links'] = array( | $conf['links'] = array( |
| 'https://realmofespionage.xyz' => 'Realm of Espionage', | 'https://realmofespionage.xyz' => 'Realm of Espionage', |
| 'https://wiki.realmofespionage.xyz/start' => 'RoE | Wiki', | 'https://wiki.realmofespionage.xyz' => 'RoE | Wiki', |
| 'https://blog.realmofespionage.xyz' => 'RoE | Blog', | 'https://blog.realmofespionage.xyz' => 'RoE | Blog', |
| 'https://social.realmofespionage.xyz/profile/espionage724' => 'RoE | Social', | 'https://social.realmofespionage.xyz/profile/espionage724' => 'RoE | Social', |
| 'https://forums.realmofespionage.xyz' => 'RoE | Forums', | 'https://forums.realmofespionage.xyz' => 'RoE | Forums', |
| | 'https://status.realmofespionage.xyz' => 'RoE | Status', |
| 'https://wiki.realmofespionage.xyz/user:espionage724' => 'Webmaster Info', | 'https://wiki.realmofespionage.xyz/user:espionage724' => 'Webmaster Info', |
| 'https://wiki.realmofespionage.xyz/servers:linux:nginx:piwigo' => 'Instance Configuration Notes', | 'https://wiki.realmofespionage.xyz/servers:linux:nginx:piwigo' => 'Instance Configuration Notes', |
| $conf['file_ext'] = array_merge( | $conf['file_ext'] = array_merge( |
| $conf['picture_ext'], | $conf['picture_ext'], |
| array('mp4','webmv','m4v','webm','mov') | array('mp4') |
| ); | ); |
| |
| // End | // End |
| ?></code> | ?></code> |
| |
| ====== Scripts ====== | |
| |
| ===== Git Fix ===== | |
| |
| * :!: Set email for **both** ''user.email'' | |
| |
| sudo mkdir -p '/etc/nginx/scripts/media' && sudo -e '/etc/nginx/scripts/media/git-fix.sh' && sudo chmod '0500' '/etc/nginx/scripts/media/git-fix.sh' && sudo chown 'www-data':'www-data' '/etc/nginx/scripts/media/git-fix.sh' | |
| |
| <code> | |
| #!/bin/bash | |
| |
| cd '/tmp' | |
| |
| '/usr/bin/rm' -Rf '/var/www/media/.git' | |
| '/usr/bin/git' -C '/var/www/media' init --initial-branch='master' | |
| '/usr/bin/git' -C '/var/www/media' add '.' | |
| |
| ######################################## | |
| '/usr/bin/git' -C '/var/www/media' config 'user.email' 'espionage724@x' | |
| ######################################## | |
| |
| '/usr/bin/git' -C '/var/www/media' commit --message='x' | |
| |
| '/usr/bin/git' -C '/var/www/media' remote add 'origin' 'https://github.com/Piwigo/Piwigo.git' | |
| '/usr/bin/git' -C '/var/www/media' pull --depth '1' --recurse-submodules 'origin' 'master' --rebase | |
| |
| '/usr/bin/git' -C '/var/www/media' reset --hard 'origin/master' | |
| '/usr/bin/git' -C '/var/www/media' gc --aggressive --prune='all' | |
| '/usr/bin/git' -C '/var/www/media' fsck --full --strict | |
| |
| '/usr/bin/rm' -Rf '/var/www/media/themes/bootstrap_darkroom/.git' | |
| '/usr/bin/git' -C '/var/www/media/themes/bootstrap_darkroom' init --initial-branch='master' | |
| '/usr/bin/git' -C '/var/www/media/themes/bootstrap_darkroom' add '.' | |
| |
| ######################################## | |
| '/usr/bin/git' -C '/var/www/media/themes/bootstrap_darkroom' config 'user.email' 'espionage724@x' | |
| ######################################## | |
| |
| '/usr/bin/git' -C '/var/www/media/themes/bootstrap_darkroom' commit --message='x' | |
| |
| '/usr/bin/git' -C '/var/www/media/themes/bootstrap_darkroom' remote add 'origin' 'https://github.com/Piwigo/piwigo-bootstrap-darkroom.git' | |
| '/usr/bin/git' -C '/var/www/media/themes/bootstrap_darkroom' pull --depth '1' --recurse-submodules 'origin' 'master' --rebase | |
| |
| '/usr/bin/git' -C '/var/www/media/themes/bootstrap_darkroom' reset --hard 'origin/master' | |
| '/usr/bin/git' -C '/var/www/media/themes/bootstrap_darkroom' gc --aggressive --prune='all' | |
| '/usr/bin/git' -C '/var/www/media/themes/bootstrap_darkroom' fsck --full --strict | |
| |
| # End</code> | |
| |
| sudo -u 'www-data' '/etc/nginx/scripts/media/git-fix.sh' | |
| |
| ====== Services ====== | ====== Services ====== |
| <code> | <code> |
| [Service] | [Service] |
| User=www-data | User=wwwrun |
| Group=www-data | Group=www |
| Type=oneshot | Type=oneshot |
| |
| WorkingDirectory=/var/www/media | WorkingDirectory=/tmp |
| | |
| ExecStart='/usr/bin/git' -C '/var/www/media' reset --hard 'origin/master' | |
| ExecStart='/usr/bin/git' -C '/var/www/media' pull origin 'master' --rebase | |
| |
| ExecStart='/usr/bin/git' -C '/var/www/media/themes/bootstrap_darkroom' reset --hard 'origin/master' | ExecStart='/usr/bin/git' -C '/srv/www/media' reset --hard 'origin/master' |
| ExecStart='/usr/bin/git' -C '/var/www/media/themes/bootstrap_darkroom' pull origin 'master' --rebase | ExecStart='/usr/bin/git' -C '/srv/www/media' pull origin 'master' --rebase |
| |
| ExecStartPost='/usr/bin/sync' | ExecStart='/usr/bin/git' -C '/srv/www/media/themes/bootstrap_darkroom' reset --hard 'origin/master' |
| | ExecStart='/usr/bin/git' -C '/srv/www/media/themes/bootstrap_darkroom' pull origin 'master' --rebase |
| |
| # End</code> | # End</code> |
| |
| === Service === | === Service === |
| | |
| | * [[linux:notes:ext4|ext4 NAS]] |
| |
| mkdir -p ~/'backups' && sudo -e '/etc/systemd/system/media-fb.service' && sudo sed -i 's/CHANGEME/'$USER'/g' '/etc/systemd/system/media-fb.service' | mkdir -p ~/'backups' && sudo -e '/etc/systemd/system/media-fb.service' && sudo sed -i 's/CHANGEME/'$USER'/g' '/etc/systemd/system/media-fb.service' |
| Type=oneshot | Type=oneshot |
| |
| WorkingDirectory=/var/www/media | WorkingDirectory=/tmp |
| |
| ExecStart='/usr/bin/bash' -c '"/usr/bin/tar" -czf "/home/CHANGEME/backups/piwigo-files-auto-"$$(date +%%Y-%%m-%%d)".tar.gz" -C "/var/www" "media"' | ExecStart='/usr/bin/bash' -c '"/usr/bin/tar" -czf "/mnt/NAS1/Servers/Scheduled Backups/piwigo-files-auto-"$$(date +%%Y-%%m-%%d)".tar.gz" -C "/srv/www" "media"' |
| |
| ExecStartPost='/usr/bin/sync' | #ExecStart='/usr/bin/bash' -c '"/usr/bin/tar" -czf "/home/CHANGEME/backups/piwigo-files-auto-"$$(date +%%Y-%%m-%%d)".tar.gz" -C "/srv/www" "media"' |
| |
| # End</code> | # End</code> |
| === Database Auth === | === Database Auth === |
| |
| sudo mkdir -p '/var/lib/mysql/auth' && sudo -e '/var/lib/mysql/auth/piwigo' && sudo chown 'mysql':'mysql' '/var/lib/mysql/auth/piwigo' && sudo chmod '0600' '/var/lib/mysql/auth/piwigo' | sudo mkdir -p '/srv/lib/mysql/auth' && sudo -e '/srv/lib/mysql/auth/piwigo' && sudo chown 'mysql':'mysql' '/srv/lib/mysql/auth/piwigo' && sudo chmod '0600' '/srv/lib/mysql/auth/piwigo' |
| |
| <code> | <code> |
| === Service === | === Service === |
| |
| mkdir -p ~/'backups' && sudo mkdir -p '/var/lib/mysql/tmp' && sudo -e '/etc/systemd/system/media-db.service' && sudo sed -i 's/'CHANGEME'/'$USER'/g' '/etc/systemd/system/media-db.service' | * [[linux:notes:ext4|ext4 NAS]] |
| | |
| | mkdir -p ~/'backups' && sudo mkdir -p '/srv/lib/mysql/tmp' && sudo -e '/etc/systemd/system/media-db.service' && sudo sed -i 's/'CHANGEME'/'$USER'/g' '/etc/systemd/system/media-db.service' |
| |
| <code> | <code> |
| Type=oneshot | Type=oneshot |
| |
| WorkingDirectory=/var/lib/mysql | WorkingDirectory=/tmp |
| |
| ExecStart='/usr/bin/bash' -c '"/usr/bin/mariadb-dump" --defaults-extra-file="/var/lib/mysql/auth/piwigo" --single-transaction --quick "piwigo" -r "/home/CHANGEME/backups/piwigo-database-auto-"$$(date +%%Y-%%m-%%d)".sql"' | ExecStart='/usr/bin/bash' -c '"/usr/bin/mariadb-dump" --defaults-extra-file="/srv/lib/mysql/auth/piwigo" --single-transaction --quick "piwigo" -r "/mnt/NAS1/Servers/Scheduled Backups/piwigo-database-auto-"$$(date +%%Y-%%m-%%d)".sql"' |
| |
| ExecStartPost='/usr/bin/sync' | #ExecStart='/usr/bin/bash' -c '"/usr/bin/mariadb-dump" --defaults-extra-file="/srv/lib/mysql/auth/piwigo" --single-transaction --quick "piwigo" -r "/home/CHANGEME/backups/piwigo-database-auto-"$$(date +%%Y-%%m-%%d)".sql"' |
| |
| # End</code> | # End</code> |
| <code> | <code> |
| [Service] | [Service] |
| User=www-data | User=wwwrun |
| Group=www-data | Group=www |
| Type=oneshot | Type=oneshot |
| |
| WorkingDirectory=/var/www/media | WorkingDirectory=/tmp |
| |
| ExecStart='/usr/bin/git' -C '/var/www/media' gc --aggressive --prune='all' | ExecStart='/usr/bin/git' -C '/srv/www/media' gc --aggressive --prune='all' |
| ExecStart='/usr/bin/git' -C '/var/www/media' fsck --full --strict | ExecStart='/usr/bin/git' -C '/srv/www/media' fsck --full --strict |
| |
| ExecStart='/usr/bin/git' -C '/var/www/media/themes/bootstrap_darkroom' gc --aggressive --prune='all' | ExecStart='/usr/bin/git' -C '/srv/www/media/themes/bootstrap_darkroom' gc --aggressive --prune='all' |
| ExecStart='/usr/bin/git' -C '/var/www/media/themes/bootstrap_darkroom' fsck --full --strict | ExecStart='/usr/bin/git' -C '/srv/www/media/themes/bootstrap_darkroom' fsck --full --strict |
| | |
| ExecStartPost='/usr/bin/sync' | |
| |
| # End</code> | # End</code> |
| **** | **** |
| |
| sudo tar -czf ~/'piwigo-files-manual-'$(date +%Y-%m-%d)'.tar.gz' -C '/var/www' 'media' | sudo tar -czf ~/'piwigo-files-manual-'$(date +%Y-%m-%d)'.tar.gz' -C '/srv/www' 'media' |
| |
| ===== Database ===== | ===== Database ===== |
| **** | **** |
| |
| ls ~/'piwigo-files-'*'.tar.gz' && sudo rm -Rf '/var/www/media' | ls ~/'piwigo-files-'*'.tar.gz' && sudo rm -Rf '/srv/www/media' |
| |
| ===== Restore Files ===== | ===== Restore Files ===== |
| **** | **** |
| |
| sudo tar -xzf ~/'piwigo-files-'*'.tar.gz' -C '/var/www' 'media' && sudo chown -R 'www-data':'www-data' '/var/www/media' && sudo chmod -R '0755' '/var/www/media' | sudo tar -xzf ~/'piwigo-files-'*'.tar.gz' -C '/srv/www' 'media' && sudo chown -R 'wwwrun':'www' '/srv/www/media' && sudo chmod -R '0755' '/srv/www/media' |
| |
| ===== Restore Database ===== | ===== Restore Database ===== |
| * :!: Set email for ''user.email'' | * :!: Set email for ''user.email'' |
| |
| sudo su 'www-data' -s '/bin/bash' | sudo su 'wwwrun' -s '/bin/bash' |
| |
| rm -Rf '/var/www/media/.git' | cd '/tmp' && rm -Rf '/srv/www/media/.git' |
| |
| git -C '/var/www/media' init --initial-branch='master' | git -C '/srv/www/media' init --initial-branch='master' |
| |
| git -C '/var/www/media' add '.' | git -C '/srv/www/media' add '.' |
| |
| git -C '/var/www/media' config 'user.email' 'espionage724@x' | git -C '/srv/www/media' config 'user.email' 'espionage724@x' |
| |
| git -C '/var/www/media' commit --message='x' | git -C '/srv/www/media' commit --message='x' |
| |
| git -C '/var/www/media' remote add 'origin' 'https://github.com/Piwigo/Piwigo.git' | git -C '/srv/www/media' remote add 'origin' 'https://github.com/Piwigo/Piwigo.git' |
| |
| git -C '/var/www/media' pull --depth '1' --recurse-submodules 'origin' 'master' --rebase | git -C '/srv/www/media' pull --depth '1' --recurse-submodules 'origin' 'master' --rebase |
| |
| git -C '/var/www/media' reset --hard 'origin/master' | git -C '/srv/www/media' reset --hard 'origin/master' |
| |
| git -C '/var/www/media' gc --aggressive --prune='all' | git -C '/srv/www/media' gc --aggressive --prune='all' |
| |
| git -C '/var/www/media' fsck --full --strict | git -C '/srv/www/media' fsck --full --strict |
| |
| ==== Bootstrap Darkroom ==== | ==== Bootstrap Darkroom ==== |
| * :!: Set email for ''user.email'' | * :!: Set email for ''user.email'' |
| |
| rm -Rf '/var/www/media/themes/bootstrap_darkroom/.git' | rm -Rf '/srv/www/media/themes/bootstrap_darkroom/.git' |
| |
| git -C '/var/www/media/themes/bootstrap_darkroom' init --initial-branch='master' | git -C '/srv/www/media/themes/bootstrap_darkroom' init --initial-branch='master' |
| |
| git -C '/var/www/media/themes/bootstrap_darkroom' add '.' | git -C '/srv/www/media/themes/bootstrap_darkroom' add '.' |
| |
| git -C '/var/www/media/themes/bootstrap_darkroom' config 'user.email' 'espionage724@x' | git -C '/srv/www/media/themes/bootstrap_darkroom' config 'user.email' 'espionage724@x' |
| |
| git -C '/var/www/media/themes/bootstrap_darkroom' commit --message='x' | git -C '/srv/www/media/themes/bootstrap_darkroom' commit --message='x' |
| |
| git -C '/var/www/media/themes/bootstrap_darkroom' remote add 'origin' 'https://github.com/Piwigo/piwigo-bootstrap-darkroom.git' | git -C '/srv/www/media/themes/bootstrap_darkroom' remote add 'origin' 'https://github.com/Piwigo/piwigo-bootstrap-darkroom.git' |
| |
| git -C '/var/www/media/themes/bootstrap_darkroom' pull --depth '1' --recurse-submodules 'origin' 'master' --rebase | git -C '/srv/www/media/themes/bootstrap_darkroom' pull --depth '1' --recurse-submodules 'origin' 'master' --rebase |
| |
| git -C '/var/www/media/themes/bootstrap_darkroom' reset --hard 'origin/master' | git -C '/srv/www/media/themes/bootstrap_darkroom' reset --hard 'origin/master' |
| |
| git -C '/var/www/media/themes/bootstrap_darkroom' gc --aggressive --prune='all' | git -C '/srv/www/media/themes/bootstrap_darkroom' gc --aggressive --prune='all' |
| |
| git -C '/var/www/media/themes/bootstrap_darkroom' fsck --full --strict | git -C '/srv/www/media/themes/bootstrap_darkroom' fsck --full --strict |
| |
| exit | exit |
| ===== MySQL Connection ===== | ===== MySQL Connection ===== |
| |
| * Windows uses ''127.0.0.1'' | sudo -e '/srv/www/media/local/config/database.inc.php' && sudo chown -v 'wwwrun':'www' '/srv/www/media/local/config/database.inc.php' |
| | |
| sudo -u 'www-data' -e '/var/www/media/local/config/database.inc.php' | |
| |
| $conf['db_host'] = 'localhost'; | $conf['db_host'] = 'localhost'; |
| rm -fv ~/'piwigo-files-'*'.tar.gz' ~/'piwigo'*'.sql' | rm -fv ~/'piwigo-files-'*'.tar.gz' ~/'piwigo'*'.sql' |
| |
| ====== TODOs ====== | ====== Resources ====== |
| | |
| | ===== Albums Formatting ===== |
| | |
| | * :!: Using Emojis (like 8-) from [[https://emojipedia.org/smiling-face-with-sunglasses|Emojipedia]]) in comments caused a MySQL exception |
| | |
| | ==== 4 Links ==== |
| | |
| | * https://media.realmofespionage.xyz/index/category/2 |
| | |
| | <code> |
| | <a href="https://wiki.realmofespionage.xyz/games;windows;2004scape_localhost" target="_blank" rel="noopener">Windows</a> | <a href="https://wiki.realmofespionage.xyz/games;linux;2004scape_localhost" target="_blank" rel="noopener">Linux</a> | <a href="https://wiki.realmofespionage.xyz/games;bsd;2004scape_localhost" target="_blank" rel="noopener">FreeBSD</a> | <a href="https://lostcity.rs/t/singleplayer-main-branch-scripts-and-desktop-start-launchers-on-windows-linux-freebsd/54" target="_blank" rel="noopener">Lost City Forums</a> |
| | </code> |
| | |
| | ==== Single Link ==== |
| | |
| | * https://media.realmofespionage.xyz/picture/268/category/17 |
| | |
| | <code> |
| | <a href="https://wiki.realmofespionage.xyz/games;windows;dota_2_steamcmd" target="_blank" rel="noopener">Notes</a> |
| | </code> |
| | |
| | ====== TODO ====== |
| |
| * Show title on pictures (long titles get cut-off in navbar) | * 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]]) | * 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]]) |
| * :?: Below is remaining packages not installed from old installs | * :?: Below is remaining packages not installed from old installs ((bz2/zlib seem installed with wiki; TODO: source for those being reqs)) |
| |
| sudo dnf install libvorbis poppler-utils | sudo dnf install libvorbis poppler-utils |