| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| servers:windows:nginx:friendica [2026/02/03 05:42] – [Addons] Sean Rhone | servers:windows:nginx:friendica [2026/03/06 00:32] (current) – [Download Sources] Sean Rhone |
|---|
| |
| * https://github.com/friendica/friendica/commits/develop/ | * https://github.com/friendica/friendica/commits/develop/ |
| | * https://github.com/friendica/friendica-addons/commits/develop/ |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/git' clone --branch 'develop' --depth '1' --recurse-submodules 'https://github.com/friendica/friendica.git' '/srv/www/social' | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/git' clone --branch 'develop' --depth '1' --recurse-submodules 'https://github.com/friendica/friendica.git' '/srv/www/social' |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/git' clone --branch 'develop' --depth '1' --recurse-submodules 'https://github.com/friendica/friendica-addons.git' '/srv/www/social/addon' |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/chown' -R "%USERNAME%":"%USERNAME%" '/srv/www/social' | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/chown' -R "%USERNAME%":"%USERNAME%" '/srv/www/social' |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/chmod' -R '0660' '/srv/www/social' | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/chmod' -R '0660' '/srv/www/social' |
| |
| ===== Addons ===== | |
| |
| * https://github.com/friendica/friendica-addons/commits/develop/ | |
| * :!: TODO: Above through WSL | |
| |
| "%ProgramFiles%\Git\bin\git.exe" clone --branch "develop" --depth "1" --recurse-submodules "https://github.com/friendica/friendica-addons.git" "%SystemDrive%\www\social\addon" | |
| |
| ====== Database ====== | ====== Database ====== |
| |
| ===== Server Block ===== | ===== Server Block ===== |
| |
| "powershell.exe" -Command "New-Item -ItemType SymbolicLink -Path '%SystemDrive%\www\social' -Target '\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social'" | |
| |
| "notepad.exe" "%SystemDrive%\www\nginx\vhosts.d\social.conf" | "notepad.exe" "%SystemDrive%\www\nginx\vhosts.d\social.conf" |
| http2 "on"; | http2 "on"; |
| server_name "social.realmofespionage.xyz"; | server_name "social.realmofespionage.xyz"; |
| root "C:/www/social"; | root "//wsl.localhost/openSUSE-Tumbleweed/srv/www/social"; |
| index "index.php"; | index "index.php"; |
| |
| CD "%Temp%" | CD "%Temp%" |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' '/srv/www/social/bin/console.php' worker | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' worker |
| |
| :: End</code> | :: End</code> |
| |
| ===== Update ===== | ===== Update ===== |
| |
| * :!: TODO: Git | |
| |
| "notepad.exe" "%SystemDrive%\www\scripts\social\Update.bat" | "notepad.exe" "%SystemDrive%\www\scripts\social\Update.bat" |
| CD "%Temp%" | CD "%Temp%" |
| |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\social" reset --hard "origin/develop" | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' reset --hard 'origin/develop' |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\social" pull origin "develop" --rebase | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' pull origin 'develop' --rebase |
| |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\social\addon" reset --hard "origin/develop" | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' reset --hard 'origin/develop' |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\social\addon" pull origin "develop" --rebase | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' pull origin 'develop' --rebase |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/composer2' --working-dir='/srv/www/social' --no-cache install --no-dev | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/composer2' --working-dir='/srv/www/social' --no-cache install --no-dev |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/srv/www/social" -- '/usr/bin/php' '/srv/www/social/bin/console.php' dbstructure update --force | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure update --force |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/srv/www/social" -- '/usr/bin/php' '/srv/www/social/bin/console.php' dbstructure drop --execute | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure drop --execute |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/srv/www/social" -- '/usr/bin/php' '/srv/www/social/bin/console.php' postupdate | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' postupdate |
| | |
| CALL "%SystemDrive%\www\scripts\social\File Sync.bat" | |
| |
| :: End</code> | :: End</code> |
| |
| "%SystemDrive%\www\scripts\social\Update.bat" | "%SystemDrive%\www\scripts\social\Update.bat" |
| |
| ===== File Sync ===== | |
| |
| "notepad.exe" "%SystemDrive%\www\scripts\social\File Sync.bat" | |
| |
| <code> | |
| @echo off | |
| |
| TITLE Social File Sync | |
| CD "%Temp%" | |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/rsync' --max-alloc='4G' --checksum-choice='none' --update --recursive --no-implied-dirs --ignore-times --size-only --open-noatime --block-size='3072' '/mnt/c/www/social/' '/srv/www/social' | |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/rsync' --max-alloc='4G' --checksum-choice='none' --update --recursive --no-implied-dirs --ignore-times --size-only --open-noatime --block-size='6144' '/srv/www/social' '/mnt/c/www' | |
| |
| :: End</code> | |
| |
| "%SystemDrive%\www\scripts\social\File Sync.bat" | |
| |
| ===== Back-up ===== | ===== Back-up ===== |
| CD "%Temp%" | CD "%Temp%" |
| |
| "tar.exe" -czf "D:\Servers\Scheduled Backups\friendica-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "social" | "tar.exe" -czf "D:\Servers\Scheduled Backups\friendica-files-auto-%RANDOM%.tar.gz" -C "\\wsl.localhost\openSUSE-Tumbleweed\srv\www" "social" |
| "%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "D:\Servers\Scheduled Backups\%RANDOM%-friendica.sql" "friendica" | "%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "D:\Servers\Scheduled Backups\%RANDOM%-friendica.sql" "friendica" |
| |
| ::"tar.exe" -czf "%UserProfile%\Downloads\friendica-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "social" | ::"tar.exe" -czf "%UserProfile%\Downloads\friendica-files-auto-%RANDOM%.tar.gz" -C "\\wsl.localhost\openSUSE-Tumbleweed\srv\www" "social" |
| ::"%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "%UserProfile%\Downloads\%RANDOM%-friendica.sql" "friendica" | ::"%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "%UserProfile%\Downloads\%RANDOM%-friendica.sql" "friendica" |
| |
| CD "%Temp%" | CD "%Temp%" |
| |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\social" gc --aggressive --prune="all" | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' gc --aggressive --prune='all' |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\social" fsck --full --strict | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' fsck --full --strict |
| |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\social\addon" gc --aggressive --prune="all" | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' gc --aggressive --prune='all' |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\social\addon" fsck --full --strict | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' fsck --full --strict |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/mnt/c/www/social" -- '/usr/bin/php' '/mnt/c/www/social/bin/console.php' cache clear | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' cache clear |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/mnt/c/www/social" -- '/usr/bin/php' '/mnt/c/www/social/bin/console.php' clearavatarcache | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' clearavatarcache |
| |
| :: End</code> | :: End</code> |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' pull --depth '1' --recurse-submodules 'origin' 'develop' --rebase | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' pull --depth '1' --recurse-submodules 'origin' 'develop' --rebase |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' reset--hard 'origin/develop' | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' reset --hard 'origin/develop' |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' gc--aggressive--prune='all' | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' gc --aggressive --prune='all' |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' fsck --full --strict | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' fsck --full --strict |
| |
| ====== Initial Setup ====== | ====== Initial Setup ====== |
| |
| * 2026/01/21: Untested ((restored from back-up)) | * 2026/02/04: Untested ((restored from back-up)) |
| |
| ===== Initialize ===== | ===== Initialize ===== |
| * :?: 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 |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/mnt/c/www/social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/mnt/c/www/social/bin/console' autoinstall --dbhost '172.28.112.1' --dbport '3365' --dbuser 'friendica' --dbdata 'friendica' --url 'https://social.realmofespionage.xyz' --basepath '/srv/www/social' --dbpass 'x' --admin 'espionage724@x' | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console' autoinstall --dbhost '172.28.112.1' --dbport '3365' --dbuser 'friendica' --dbdata 'friendica' --url 'https://social.realmofespionage.xyz' --basepath '/srv/www/social' --dbpass 'x' --admin 'espionage724@x' |
| |
| ===== Account Create ===== | ===== Account Create ===== |
| * :!: ''x'' is the **nickname** chosen at website registration | * :!: ''x'' is the **nickname** chosen at website registration |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/mnt/c/www/social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/mnt/c/www/social/bin/console' user password x | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/social/bin/console' user password x |
| |
| ===== Disable Registration ===== | ===== Disable Registration ===== |
| **** | **** |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/mnt/c/www/social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/mnt/c/www/social/bin/console.php' config 'config' 'register_policy' '0' | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' config 'config' 'register_policy' '0' |
| |
| ===== Etc ===== | ===== Etc ===== |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' worker | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' config 'system' 'basepath' '/srv/www/social' |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure update --force | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' config 'config' 'info' 'https://wiki.realmofespionage.xyz/servers;windows;nginx;friendica' |
| | |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure drop --execute | |
| | |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' postupdate | |
| | |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' cache clear | |
| | |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' clearavatarcache | |
| | |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' config 'system' 'basepath' '/srv/www/social' | |
| | |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' config 'config' 'info' 'https://wiki.realmofespionage.xyz/servers;windows;nginx;friendica' | |
| |
| ====== Settings ====== | ====== Settings ====== |
| |
| * :!: 2026/01/30: Everything below WIP | |
| |
| ===== frio Theme ===== | ===== frio Theme ===== |
| su - | su - |
| |
| su -m 'www' -c "ee '/usr/local/www/social/config/local.config.php'" && clear | su -m 'www' -c "ee '/usr/local/www/social/config/local.config.php'" |
| |
| <code> | <code> |
| ===== Folder ===== | ===== Folder ===== |
| |
| * TODO | * TODO: Might be faster doing the ''tar'' within WSL |
| |
| "tar.exe" -czf "%UserProfile%\Downloads\friendica-files-manual-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "social" | "tar.exe" -czf "%UserProfile%\Downloads\friendica-files-manual-%RANDOM%.tar.gz" -C "//wsl.localhost/openSUSE-Tumbleweed/srv/www" "social" |
| |
| ===== Database ===== | ===== Database ===== |
| |
| "%ProgramFiles%\MariaDB 12.2\bin\mariadb.exe" -u "root" "friendica" < "%UserProfile%\Downloads\friendica.sql" | "%ProgramFiles%\MariaDB 12.2\bin\mariadb.exe" -u "root" "friendica" < "%UserProfile%\Downloads\friendica.sql" |
| | |
| | ===== Etc ===== |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' worker |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure update --force |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure drop --execute |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' postupdate |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' cache clear |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' clearavatarcache |
| |