User Tools

Site Tools


servers:bsd: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:bsd:nginx:piwigo [2026/01/09 17:34] – [MySQL Connection] Sean Rhoneservers:bsd:nginx:piwigo [2026/07/24 03:03] (current) – [config.inc.php] Sean Rhone
Line 8: Line 8:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[bsd:server:freebsd_16.0|FreeBSD 16.0]]+  * [[bsd:server:arm:freebsd_15.1|FreeBSD 15.1]]
   * [[servers:bsd:freenginx_php_php-fpm|freenginx + PHP + PHP-FPM]]   * [[servers:bsd:freenginx_php_php-fpm|freenginx + PHP + PHP-FPM]]
   * [[servers:bsd:nginx:lets_encrypt|Certbot (Let's Encrypt)]]   * [[servers:bsd:nginx:lets_encrypt|Certbot (Let's Encrypt)]]
Line 21: Line 21:
   su -   su -
  
-  pkg install git-lite php85-exif php85-gd php85-mysqli php85-mbstring+  pkg install git-lite php85-dom php85-exif php85-fileinfo php85-gd php85-mysqli php85-mbstring
  
 ====== Download Source ====== ====== Download Source ======
Line 73: Line 73:
  
 ; Logging ; Logging
-php_value[log_errors] = "Off"+php_value[log_errors] = "0"
 php_value[error_reporting] = "~E_ALL" php_value[error_reporting] = "~E_ALL"
-php_value[display_errors] = "Off" +php_value[display_errors] = "0" 
-php_value[display_startup_errors] = "Off" +php_value[display_startup_errors] = "0" 
-php_value[html_errors] = "Off"+php_value[html_errors] = "0"
  
 ; General ; General
Line 160: Line 160:
  
 ===== Page Banner ===== ===== Page Banner =====
- 
-**** 
  
 <code> <code>
Line 188: Line 186:
 // Hide PHP Warnings // Hide PHP Warnings
 $conf['show_php_errors'] = E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_WARNING; $conf['show_php_errors'] = E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_WARNING;
 +
 +$conf['graphics_library'] = 'gd';
  
 // Header Links // Header Links
 $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:bsd:nginx:piwigo' => 'Instance Configuration Notes',   'https://wiki.realmofespionage.xyz/servers:bsd:nginx:piwigo' => 'Instance Configuration Notes',
Line 205: Line 206:
 $conf['file_ext'] = array_merge( $conf['file_ext'] = array_merge(
   $conf['picture_ext'],   $conf['picture_ext'],
-  array('mp4','webmv','m4v','webm','mov')+  array('mp4')
   );   );
  
Line 235: Line 236:
  
 ===== Backup ===== ===== Backup =====
 +
 +  * [[bsd:notes:ufs_format|UFS NAS]]
  
   mkdir -p ~/'backups' ~/'.local/scripts/www/media' && ee ~/'.local/scripts/www/media/backup.sh' && chmod +x ~/'.local/scripts/www/media/backup.sh'   mkdir -p ~/'backups' ~/'.local/scripts/www/media' && ee ~/'.local/scripts/www/media/backup.sh' && chmod +x ~/'.local/scripts/www/media/backup.sh'
Line 243: Line 246:
 cd '/tmp' cd '/tmp'
  
-'/usr/bin/tar' -czf '/home/espionage724/backups/piwigo-files-auto-'$(date +%Y-%m-%d)'.tar.gz' -C '/usr/local/www' 'media'+'/usr/bin/tar' -czf '/mnt/NAS1/Servers/Scheduled Backups/piwigo-files-auto-'$(date +%Y-%m-%d)'.tar.gz' -C '/usr/local/www' 'media' 
 +'/usr/local/bin/mariadb-dump' --single-transaction --quick 'piwigo' -r '/mnt/NAS1/Servers/Scheduled Backups/piwigo-database-auto-'$(date +%Y-%m-%d)'.sql'
  
-'/usr/local/bin/mariadb-dump' --single-transaction --quick 'piwigo' -r '/home/espionage724/backups/piwigo-database-auto-'$(date +%Y-%m-%d)'.sql'+#'/usr/bin/tar' -czf '/home/espionage724/backups/piwigo-files-auto-'$(date +%Y-%m-%d)'.tar.gz' -C '/usr/local/www' 'media' 
 +#'/usr/local/bin/mariadb-dump' --single-transaction --quick 'piwigo' -r '/home/espionage724/backups/piwigo-database-auto-'$(date +%Y-%m-%d)'.sql'
  
 '/bin/sync' '/bin/sync'
Line 396: Line 401:
  
 ===== scp ===== ===== scp =====
- 
-**** 
  
   scp espionage724@192.168.1.152:~/'piwigo-files-'*'.tar.gz' espionage724@192.168.1.152:~/'piwigo-database-'*'.sql' ~/'Downloads' && sync   scp espionage724@192.168.1.152:~/'piwigo-files-'*'.tar.gz' espionage724@192.168.1.152:~/'piwigo-database-'*'.sql' ~/'Downloads' && sync
Line 404: Line 407:
  
 ===== scp ===== ===== scp =====
- 
-**** 
  
   scp ~/'Downloads/piwigo-files-'*'.tar.gz' ~/'Downloads/piwigo'*'.sql' espionage724@192.168.1.152:~   scp ~/'Downloads/piwigo-files-'*'.tar.gz' ~/'Downloads/piwigo'*'.sql' espionage724@192.168.1.152:~
/usr/local/www/wiki/data/attic/servers/bsd/nginx/piwigo.1767998075.txt.gz · Last modified: by Sean Rhone