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 [2025/08/28 00:06] – old revision restored (2025/08/27 23:33) Sean Rhoneservers:bsd:nginx:piwigo [2025/08/28 00:46] (current) – [Server Block] Sean Rhone
Line 8: Line 8:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[bsd:server:freebsd_14.2|FreeBSD 14.2]] +  * [[bsd:server:freebsd_14.3|FreeBSD 14.3]]
-  * [[servers:bsd:mariadb|MariaDB]]+
   * [[servers:bsd:nginx_php_php-fpm|nginx + PHP + PHP-FPM]]   * [[servers:bsd:nginx_php_php-fpm|nginx + PHP + PHP-FPM]]
   * [[servers:bsd:nginx:lets_encrypt|Let's Encrypt]]   * [[servers:bsd:nginx:lets_encrypt|Let's Encrypt]]
 +  * [[servers:bsd:mariadb|MariaDB]]
  
 ====== Dependencies ====== ====== Dependencies ======
Line 30: Line 30:
   su -   su -
  
-  git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/Piwigo/Piwigo.git' '/usr/local/www/media' && chown -R 'www':'www' '/usr/local/www/media' && sync+  git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/Piwigo/Piwigo.git' '/usr/local/www/media' && chown -R 'www':'www' '/usr/local/www/media'
  
-  git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/Piwigo/piwigo-bootstrap-darkroom.git' '/usr/local/www/media/themes/bootstrap_darkroom' && chown -R 'www':'www' '/usr/local/www/media' && sync+  git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/Piwigo/piwigo-bootstrap-darkroom.git' '/usr/local/www/media/themes/bootstrap_darkroom' && chown -R 'www':'www' '/usr/local/www/media'
  
 ====== Database ====== ====== Database ======
Line 54: Line 54:
   su -   su -
  
-  ee '/usr/local/etc/php-fpm.d/media.conf' && service 'php_fpm' restart+  ee '/usr/local/etc/php-fpm.d/media.conf' && service 'php_fpm' reload
  
 <code> <code>
Line 89: Line 89:
  
 <code> <code>
-# PHP-FPM 
 location ~ \.(php|phar)(/.*)?$ { location ~ \.(php|phar)(/.*)?$ {
     fastcgi_split_path_info ^(.+\.(?:php|phar))(/.*)$;     fastcgi_split_path_info ^(.+\.(?:php|phar))(/.*)$;
Line 112: Line 111:
 server { server {
     listen '443' 'ssl';     listen '443' 'ssl';
-#    http2 'on';+    http2 'on';
     server_name 'media.realmofespionage.xyz';     server_name 'media.realmofespionage.xyz';
     root '/usr/local/www/media';     root '/usr/local/www/media';
Line 167: Line 166:
   su -   su -
  
-  ee '/usr/local/www/media/local/config/config.inc.php' && chown 'www':'www' '/usr/local/www/media/local/config/config.inc.php'+  su -m 'www' -c "ee '/usr/local/www/media/local/config/config.inc.php'"
  
 <code> <code>
Line 248: Line 247:
   su -   su -
  
-  cd '/usr/local/www' && tar -cvzf '/home/espionage724/piwigo-files-manual-'$(date +%Y-%m-%d)'.tar.gz' 'media'+  tar -czf '/home/espionage724/piwigo-files-manual-'$(date +%Y-%m-%d)'.tar.gz' -C '/usr/local/www' 'media'
  
 ===== Database ===== ===== Database =====
Line 254: Line 253:
 **** ****
  
-  mariadb-dump -u root -p --single-transaction 'piwigo' -r '/home/espionage724/piwigo-database-manual-'$(date +%Y-%m-%d)'.sql'+  mariadb-dump -u root -p --single-transaction --quick 'piwigo' -r '/home/espionage724/piwigo-database-manual-'$(date +%Y-%m-%d)'.sql'
  
 ===== scp ===== ===== scp =====
Line 285: Line 284:
  
   mariadb -u 'root' -p 'piwigo' < '/home/espionage724/piwigo-database-manual-'*'.sql'   mariadb -u 'root' -p 'piwigo' < '/home/espionage724/piwigo-database-manual-'*'.sql'
 +
 +  mariadb -u 'root' -p 'piwigo' < '/home/espionage724/piwigo.sql'
  
/usr/local/www/wiki/data/attic/servers/bsd/nginx/piwigo.1756354004.txt.gz · Last modified: by Sean Rhone