| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| servers:bsd:nginx:friendica [2026/01/09 17:03] – [Updater] Sean Rhone | servers:bsd:nginx:friendica [2026/03/05 16:14] (current) – Sean Rhone |
|---|
| * https://wiki.friendi.ca/docs/install#option_brun_the_automatic_install_script | * https://wiki.friendi.ca/docs/install#option_brun_the_automatic_install_script |
| |
| * :!: 2025/10/30: This failed to find a file and didn't seem to work ((:?: This might have been because of ''--dbhost'' being ''localhost'' before)) ((restoring a previous-install works fine bypassing this initial set-up)) | * :!: 2025/10/30: This failed to find a file and didn't seem to work ((:?: This might have been because of ''--dbhost'' being ''localhost'' before)) (([[#restore|restoring]] a previous-install works fine bypassing this initial set-up)) |
| * :!: Change ''--dbpass'', and ''--admin'' to email | * :!: Change ''--dbpass'', and ''--admin'' to email |
| * :?: Might be able to use ''--file'' on manually-created [[#localconfigphp|local.config.php]] instead | * :?: Might be able to use ''--file'' on manually-created [[#localconfigphp|local.config.php]] instead |
| |
| su - | su - |
| |
| cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' worker" | |
| |
| cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' dbstructure update --force" | |
| |
| cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' dbstructure drop --execute" | |
| |
| cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' postupdate" | |
| |
| cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' cache clear" | |
| |
| cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' clearavatarcache" | |
| |
| cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' config 'system' 'basepath' '/usr/local/www/social'" | cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' config 'system' 'basepath' '/usr/local/www/social'" |
| |
| cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' config 'config' 'info' 'https://wiki.realmofespionage.xyz/servers:bsd:nginx:friendica'" | cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' config 'config' 'info' 'https://wiki.realmofespionage.xyz/servers:bsd:nginx:friendica'" |
| |
| exit | |
| |
| ====== Settings ====== | ====== Settings ====== |
| su - | su - |
| |
| su -m 'www' -c "ee '/usr/local/www/social/config/local.config.php'" | su -m 'www' -c "ee '/usr/local/www/social/config/local.config.php'" && clear |
| |
| <code> | <code> |
| |
| '/usr/bin/su' -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' worker" > '/dev/null' | '/usr/bin/su' -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' worker" > '/dev/null' |
| | |
| | cd '/tmp' |
| |
| # End</code> | # End</code> |
| ===== Database ===== | ===== Database ===== |
| |
| **** | su - |
| |
| mariadb-dump -u root -p --single-transaction --quick 'friendica' -r '/home/espionage724/friendica-database-manual-'$(date +%Y-%m-%d)'.sql' | mariadb-dump --single-transaction --quick 'friendica' -r '/home/espionage724/friendica-database-manual-'$(date +%Y-%m-%d)'.sql' |
| |
| ===== scp ===== | ===== scp ===== |
| su - | su - |
| |
| su -m 'www' -c "ee '/usr/local/www/social/config/local.config.php'" | su -m 'www' -c "ee '/usr/local/www/social/config/local.config.php'" && clear |
| |
| 'hostname' => '127.0.0.1', | 'hostname' => '127.0.0.1', |
| |
| 'basepath' => '/usr/local/www/social', | 'basepath' => '/usr/local/www/social', |
| | |
| | ===== Etc ===== |
| | |
| | su - |
| | |
| | cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' worker" |
| | |
| | cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' dbstructure update --force" |
| | |
| | cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' dbstructure drop --execute" |
| | |
| | cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' postupdate" |
| | |
| | cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' cache clear" |
| | |
| | cd '/usr/local/www/social' && su -m 'www' -c "'/usr/local/bin/php' -c '/usr/local/etc/php-fpm.d/social.conf' '/usr/local/www/social/bin/console.php' clearavatarcache" |
| | |
| | exit |
| |