| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| servers:bsd:nginx:friendica [2026/06/15 08:00] – [Composer] Sean Rhone | servers:bsd:nginx:friendica [2026/08/02 16:15] (current) – Sean Rhone |
|---|
| ===== 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)]] |
| * 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 - |
| |
| ; 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 |
| |
| ====== 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 ===== |
| '/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' |
| |
| ===== 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' |
| 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' |
| |
| * :!: 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' |
| |
| ===== 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 |
| |
| ===== 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:~ |