User Tools

Site Tools


servers:bsd:nginx:friendica

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:friendica [2026/05/22 00:16] Sean Rhoneservers:bsd:nginx:friendica [2026/08/02 16:15] (current) Sean Rhone
Line 11: Line 11:
 ===== 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 29: Line 29:
   * https://github.com/friendica/friendica/commits/develop/   * https://github.com/friendica/friendica/commits/develop/
   * https://github.com/friendica/friendica-addons/commits/develop/ ((Required for ''composer install'' even without any addons enabled))   * https://github.com/friendica/friendica-addons/commits/develop/ ((Required for ''composer install'' even without any addons enabled))
 +
 +  * :?: 2026/08/02: [[https://github.com/friendica/friendica/issues/16035|#16035]]
  
   su -   su -
Line 42: Line 44:
   su -   su -
  
-  cd '/tmp' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/bin/composer.phar' --working-dir='/usr/local/www/social' --no-cache install --no-dev"+  cd '/tmp' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/bin/composer.phar' --working-dir='/usr/local/www/social' --no-cache install --no-dev --ignore-platform-req='ext-apcu' --ignore-platform-req='ext-imagick'"
  
 ====== Database ====== ====== Database ======
Line 83: Line 85:
  
 ; 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 207: Line 209:
  
 ====== Settings ====== ====== Settings ======
- 
-  * :?: 2026: Location -> Country was missing ''USA'', but returned as ''United States of America'' that's unique on [[https://dir.friendica.social/search?field=country&q=United+States+of+America|Directory]] ((browser Inspect tool can be used to type anything)) 
  
 ===== frio Theme ===== ===== frio Theme =====
Line 293: Line 293:
 '/usr/bin/su' -m 'www' -c "'/usr/local/bin/git' -C '/usr/local/www/social/addon' pull 'origin' 'develop' --rebase" '/usr/bin/su' -m 'www' -c "'/usr/local/bin/git' -C '/usr/local/www/social/addon' pull 'origin' 'develop' --rebase"
  
-'/usr/bin/su' -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/bin/composer.phar' --working-dir='/usr/local/www/social' --no-cache install --no-dev"+'/usr/bin/su' -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/bin/composer.phar' --working-dir='/usr/local/www/social' --no-cache install --no-dev --ignore-platform-req='ext-apcu' --ignore-platform-req='ext-imagick'"
  
 cd '/usr/local/www/social' cd '/usr/local/www/social'
Line 309: Line 309:
  
 ===== Backup ===== ===== Backup =====
 +
 +  * [[bsd:notes:ufs_format|UFS NAS]]
  
   mkdir -p ~/'backups' ~/'.local/scripts/www/social' && ee ~/'.local/scripts/www/social/backup.sh' && chmod +x ~/'.local/scripts/www/social/backup.sh'   mkdir -p ~/'backups' ~/'.local/scripts/www/social' && ee ~/'.local/scripts/www/social/backup.sh' && chmod +x ~/'.local/scripts/www/social/backup.sh'
Line 317: Line 319:
 cd '/tmp' cd '/tmp'
  
-'/usr/bin/tar' -czf '/home/espionage724/backups/friendica-files-auto-'$(date +%Y-%m-%d)'.tar.gz' -C '/usr/local/www' 'social'+'/usr/bin/tar' -czf '/mnt/NAS1/Servers/Scheduled Backups/friendica-files-auto-'$(date +%Y-%m-%d)'.tar.gz' -C '/usr/local/www' 'social
 +'/usr/local/bin/mariadb-dump' --single-transaction --quick 'friendica' -r '/mnt/NAS1/Servers/Scheduled Backups/friendica-database-auto-'$(date +%Y-%m-%d)'.sql'
  
-'/usr/local/bin/mariadb-dump' --single-transaction --quick 'friendica' -r '/home/espionage724/backups/friendica-database-auto-'$(date +%Y-%m-%d)'.sql'+#'/usr/bin/tar' -czf '/home/espionage724/backups/friendica-files-auto-'$(date +%Y-%m-%d)'.tar.gz' -C '/usr/local/www' 'social' 
 +#'/usr/local/bin/mariadb-dump' --single-transaction --quick 'friendica' -r '/home/espionage724/backups/friendica-database-auto-'$(date +%Y-%m-%d)'.sql'
  
 '/bin/sync' '/bin/sync'
Line 356: Line 360:
  
   * :!: Set email for **both** ''user.email''   * :!: Set email for **both** ''user.email''
-  * :!: Requires [[#etc|Etc]] commands afterwards+  * :!: Requires [[#etc1|Etc]] commands afterwards
  
   mkdir -p ~/'.local/scripts/www/social' && ee ~/'.local/scripts/www/social/git-fix.sh' && chmod +x ~/'.local/scripts/www/social/git-fix.sh'   mkdir -p ~/'.local/scripts/www/social' && ee ~/'.local/scripts/www/social/git-fix.sh' && chmod +x ~/'.local/scripts/www/social/git-fix.sh'
Line 495: Line 499:
  
 ===== scp ===== ===== scp =====
- 
-**** 
  
   scp espionage724@192.168.1.152:~/'friendica-files-'*'.tar.gz' espionage724@192.168.1.152:~/'friendica-database-'*'.sql' ~/'Downloads' && sync   scp espionage724@192.168.1.152:~/'friendica-files-'*'.tar.gz' espionage724@192.168.1.152:~/'friendica-database-'*'.sql' ~/'Downloads' && sync
Line 503: Line 505:
  
 ===== scp ===== ===== scp =====
- 
-**** 
  
   scp ~/'Downloads/friendica-files-'*'.tar.gz' ~/'Downloads/friendica'*'.sql' espionage724@192.168.1.152:~   scp ~/'Downloads/friendica-files-'*'.tar.gz' ~/'Downloads/friendica'*'.sql' espionage724@192.168.1.152:~
/usr/local/www/wiki/data/attic/servers/bsd/nginx/friendica.1779423368.txt.gz · Last modified: by Sean Rhone