| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| servers:windows:nginx:friendica [2026/02/04 00:10] – Sean Rhone | servers:windows:nginx:friendica [2026/04/15 10:03] (current) – [PHP-FPM] Sean Rhone |
|---|
| * https://wiki.friendi.ca/docs/install#requirements | * https://wiki.friendi.ca/docs/install#requirements |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/zypper' install git-core tar php-composer2 php8-curl php-gd php8-gmp php8-pdo php8-mbstring php8-intl php8-mysql php8-zip php8-openssl php8-fileinfo php8-posix | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/zypper' install git-core tar php-composer2 php8-curl php-gd php8-gmp php8-pdo php8-mbstring php8-intl php8-mysql php8-zip php8-openssl php8-fileinfo php8-posix |
| |
| ====== Download Sources ====== | ====== Download Source ====== |
| |
| * https://github.com/friendica/friendica/commits/develop/ | * https://github.com/friendica/friendica/commits/develop/ |
| * https://github.com/friendica/friendica-addons/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' | "%SystemRoot%\System32\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' | "%SystemRoot%\System32\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' | "%SystemRoot%\System32\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' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/chmod' -R '0660' '/srv/www/social' |
| |
| ====== Database ====== | ====== Database ====== |
| |
| "%ProgramFiles%\MariaDB 12.2\bin\mariadb.exe" -u "root" | "%ProgramFiles%\MariaDB 12.3\bin\mariadb.exe" -u "root" |
| |
| CREATE DATABASE friendica; | CREATE DATABASE friendica; |
| |
| CREATE USER 'friendica'@'172.28.112.0/255.255.240.0' IDENTIFIED BY 'x'; | CREATE USER 'friendica'@'%' IDENTIFIED BY 'x'; |
| |
| GRANT ALL PRIVILEGES ON friendica.* to 'friendica'@'172.28.112.0/255.255.240.0'; | GRANT ALL PRIVILEGES ON friendica.* to 'friendica'@'%'; |
| |
| FLUSH PRIVILEGES;EXIT; | FLUSH PRIVILEGES;EXIT; |
| |
| * [[servers;windows;mariadb#firewall|MariaDB notes]] | * [[servers;windows;mariadb#firewall|MariaDB notes]] |
| * Removes block and allows WSL subnet connection | * Removes block and allows WSL connection |
| |
| "netsh.exe" advfirewall firewall delete rule name="MariaDB Server" | "%SystemRoot%\System32\netsh.exe" advfirewall firewall delete rule name="MariaDB Server" |
| |
| CD "%ProgramFiles%\MariaDB "*"\bin" && "netsh.exe" advfirewall firewall add rule name="MariaDB Server" dir="in" action="allow" profile="any" remoteip="172.28.112.0/20" program="%CD%\mysqld.exe" | CD "%ProgramFiles%\MariaDB "*"\bin" |
| | |
| | "%SystemRoot%\System32\netsh.exe" advfirewall firewall add rule name="MariaDB Server" dir="in" action="allow" profile="any" remoteip="localsubnet" program="%CD%\mysqld.exe" |
| |
| ====== Environment ====== | ====== Environment ====== |
| ===== PHP ===== | ===== PHP ===== |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/nano' '/etc/php8/fpm/php-fpm.d/social.conf' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/nano' '/etc/php8/fpm/php-fpm.d/social.conf' |
| |
| <code> | <code> |
| **** | **** |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/composer2' --working-dir='/srv/www/social' --no-cache install --no-dev | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/composer2' --working-dir='/srv/www/social' --no-cache install --no-dev |
| |
| ====== nginx + PHP-FPM Configuration ====== | ====== nginx + PHP-FPM Configuration ====== |
| ===== PHP-FPM ===== | ===== PHP-FPM ===== |
| |
| "notepad.exe" "%SystemDrive%\www\nginx\default.d\social.conf" | "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\nginx\default.d\social.conf" |
| | |
| <code> | <code> |
| ===== Server Block ===== | ===== Server Block ===== |
| |
| "notepad.exe" "%SystemDrive%\www\nginx\vhosts.d\social.conf" | "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\nginx\vhosts.d\social.conf" |
| |
| <code> | <code> |
| MKDIR "%SystemDrive%\www\scripts\social" | MKDIR "%SystemDrive%\www\scripts\social" |
| |
| "explorer.exe" "%SystemDrive%\www\scripts\social" | "%SystemRoot%\explorer.exe" "%SystemDrive%\www\scripts\social" |
| |
| ===== PHP-FPM ===== | ===== PHP-FPM ===== |
| |
| "notepad.exe" "%SystemDrive%\www\scripts\social\PHP-FPM.bat" | "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\scripts\social\PHP-FPM.bat" |
| |
| <code> | <code> |
| CD "%Temp%" | CD "%Temp%" |
| |
| START "Social PHP-FPM" /MIN "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/sbin/php-fpm' -c '/etc/php8/fpm/php-fpm.d/social.conf' -F | START "Social PHP-FPM" /MIN /D "%Temp%" "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/sbin/php-fpm' -c '/etc/php8/fpm/php-fpm.d/social.conf' -F |
| |
| :: End</code> | :: End</code> |
| ===== Worker ===== | ===== Worker ===== |
| |
| "notepad.exe" "%SystemDrive%\www\scripts\social\Worker.bat" | "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\scripts\social\Worker.bat" |
| |
| <code> | <code> |
| CD "%Temp%" | CD "%Temp%" |
| |
| "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 | "%SystemRoot%\System32\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 ===== |
| |
| "notepad.exe" "%SystemDrive%\www\scripts\social\Update.bat" | "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\scripts\social\Update.bat" |
| |
| <code> | <code> |
| CD "%Temp%" | CD "%Temp%" |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' reset --hard 'origin/develop' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' reset --hard 'origin/develop' |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' pull origin 'develop' --rebase | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' pull origin 'develop' --rebase |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' reset --hard 'origin/develop' | "%SystemRoot%\System32\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' pull origin 'develop' --rebase | "%SystemRoot%\System32\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 | "%SystemRoot%\System32\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 "\\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 | "%SystemRoot%\System32\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 | "%SystemRoot%\System32\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 | "%SystemRoot%\System32\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 |
| |
| :: End</code> | :: End</code> |
| ===== Back-up ===== | ===== Back-up ===== |
| |
| "notepad.exe" "%SystemDrive%\www\scripts\social\Back-up.bat" | "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\scripts\social\Back-up.bat" |
| |
| <code> | <code> |
| CD "%Temp%" | CD "%Temp%" |
| |
| "tar.exe" -czf "D:\Servers\Scheduled Backups\friendica-files-auto-%RANDOM%.tar.gz" -C "\\wsl.localhost\openSUSE-Tumbleweed\srv\www" "social" | "%SystemRoot%\System32\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.3\bin\mariadb-dump.exe" -u "root" --opt --single-transaction -r "D:\Servers\Scheduled Backups\%RANDOM%-friendica.sql" "friendica" |
| |
| ::"tar.exe" -czf "%UserProfile%\Downloads\friendica-files-auto-%RANDOM%.tar.gz" -C "\\wsl.localhost\openSUSE-Tumbleweed\srv\www" "social" | ::"%SystemRoot%\System32\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.3\bin\mariadb-dump.exe" -u "root" --opt --single-transaction -r "%UserProfile%\Downloads\%RANDOM%-friendica.sql" "friendica" |
| |
| :: End</code> | :: End</code> |
| ===== Maintenance ===== | ===== Maintenance ===== |
| |
| "notepad.exe" "%SystemDrive%\www\scripts\social\Maintenance.bat" | "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\scripts\social\Maintenance.bat" |
| |
| <code> | <code> |
| CD "%Temp%" | CD "%Temp%" |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' gc --aggressive --prune='all' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' gc --aggressive --prune='all' |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' fsck --full --strict | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' fsck --full --strict |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' gc --aggressive --prune='all' | "%SystemRoot%\System32\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 | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' fsck --full --strict |
| |
| "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 | "%SystemRoot%\System32\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 | "%SystemRoot%\System32\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> |
| * :!: Set **both** ''user.email'' | * :!: Set **both** ''user.email'' |
| |
| "notepad.exe" "%SystemDrive%\www\scripts\social\Git Fix.bat" | "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\scripts\social\Git Fix.bat" |
| |
| <code> | <code> |
| ::################## | ::################## |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/rm' -Rf '/srv/www/social/.git' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/rm' -Rf '/srv/www/social/.git' |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' init --initial-branch='develop' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' init --initial-branch='develop' |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' add '.' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' add '.' |
| |
| ::###################################### | ::###################################### |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' config 'user.email' 'espionage724@x' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' config 'user.email' 'espionage724@x' |
| ::###################################### | ::###################################### |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' commit --message='x' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' commit --message='x' |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' remote add 'origin' 'https://github.com/friendica/friendica.git' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' remote add 'origin' 'https://github.com/friendica/friendica.git' |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' pull --depth '1' --recurse-submodules 'origin' 'develop' --rebase | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' pull --depth '1' --recurse-submodules 'origin' 'develop' --rebase |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' reset --hard 'origin/develop' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' reset --hard 'origin/develop' |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' gc --aggressive --prune='all' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' gc --aggressive --prune='all' |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' fsck --full --strict | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social' fsck --full --strict |
| |
| ::################## | ::################## |
| ::################## | ::################## |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/rm' -Rf '/srv/www/social/addon/.git' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/rm' -Rf '/srv/www/social/addon/.git' |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' init --initial-branch='develop' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' init --initial-branch='develop' |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' add '.' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' add '.' |
| |
| ::###################################### | ::###################################### |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' config 'user.email' 'espionage724@x' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' config 'user.email' 'espionage724@x' |
| ::###################################### | ::###################################### |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' commit --message='x' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' commit --message='x' |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' remote add 'origin' 'https://github.com/friendica/friendica-addons.git' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' remote add 'origin' 'https://github.com/friendica/friendica-addons.git' |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' pull --depth '1' --recurse-submodules 'origin' 'develop' --rebase | "%SystemRoot%\System32\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' | "%SystemRoot%\System32\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' | "%SystemRoot%\System32\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 | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/git' -C '/srv/www/social/addon' fsck --full --strict |
| |
| :: End</code> | :: End</code> |
| * Auto-start | * Auto-start |
| |
| SCHTASKS /Create /SC "ONLOGON" /TN "Social PHP-FPM" /TR "%SystemDrive%\www\scripts\social\PHP-FPM.bat" /F | "%SystemRoot%\System32\schtasks.exe" /Create /SC "ONLOGON" /TN "Social PHP-FPM" /TR "%SystemDrive%\www\scripts\social\PHP-FPM.bat" /F |
| |
| ===== Worker ===== | ===== Worker ===== |
| * Every 10 minutes | * Every 10 minutes |
| |
| SCHTASKS /Create /SC "MINUTE" /MO "10" /TN "Social Worker" /TR "%SystemDrive%\www\scripts\social\Worker.bat" /F | "%SystemRoot%\System32\schtasks.exe" /Create /SC "MINUTE" /MO "10" /TN "Social Worker" /TR "%SystemDrive%\www\scripts\social\Worker.bat" /F |
| |
| ===== Update ===== | ===== Update ===== |
| * Daily ''04:00:00 AM'' | * Daily ''04:00:00 AM'' |
| |
| SCHTASKS /Create /SC "DAILY" /TN "Social Update" /TR "%SystemDrive%\www\scripts\social\Update.bat" /ST "04:00" /F | "%SystemRoot%\System32\schtasks.exe" /Create /SC "DAILY" /TN "Social Update" /TR "%SystemDrive%\www\scripts\social\Update.bat" /ST "04:00" /F |
| |
| ===== Back-up ===== | ===== Back-up ===== |
| * Monthly (5th) ''04:10:00 AM'' | * Monthly (5th) ''04:10:00 AM'' |
| |
| SCHTASKS /Create /SC "MONTHLY" /D "5" /M "*" /TN "Social Back-up" /TR "%SystemDrive%\www\scripts\social\Back-up.bat" /ST "04:10" /F | "%SystemRoot%\System32\schtasks.exe" /Create /SC "MONTHLY" /D "5" /M "*" /TN "Social Back-up" /TR "%SystemDrive%\www\scripts\social\Back-up.bat" /ST "04:10" /F |
| |
| ===== Maintenance ===== | ===== Maintenance ===== |
| * Monthly (5th) ''04:30:00 AM'' | * Monthly (5th) ''04:30:00 AM'' |
| |
| SCHTASKS /Create /SC "MONTHLY" /D "5" /M "*" /TN "Social Maintenance" /TR "%SystemDrive%\www\scripts\social\Maintenance.bat" /ST "04:30" /F | "%SystemRoot%\System32\schtasks.exe" /Create /SC "MONTHLY" /D "5" /M "*" /TN "Social Maintenance" /TR "%SystemDrive%\www\scripts\social\Maintenance.bat" /ST "04:30" /F |
| |
| ====== 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 "\\wsl.localhost\openSUSE-Tumbleweed\srv\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' | "%SystemRoot%\System32\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 "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social" -- '/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/mnt/c/www/social/bin/console' user password x | "%SystemRoot%\System32\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 "\\wsl.localhost\openSUSE-Tumbleweed\srv\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' | "%SystemRoot%\System32\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 "\\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 | "%SystemRoot%\System32\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 "\\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 | "%SystemRoot%\System32\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 "\\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 | |
| | |
| "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 "\\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' | |
| |
| ====== Settings ====== | ====== Settings ====== |
| |
| * :!: 2026/01/30: Everything below WIP | * :?: 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 ===== |
| 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 | **** |
| |
| "tar.exe" -czf "%UserProfile%\Downloads\friendica-files-manual-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "social" | "%SystemRoot%\System32\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-dump.exe" -u "root" --opt -r "%UserProfile%\Downloads\friendica.sql" "friendica" | "%ProgramFiles%\MariaDB 12.3\bin\mariadb-dump.exe" -u "root" --opt --single-transaction -r "%UserProfile%\Downloads\friendica.sql" "friendica" |
| |
| ====== Restore ====== | ====== Restore ====== |
| **** | **** |
| |
| DIR "%UserProfile%\Downloads\friendica"*".tar.gz" && "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/rm' -Rf '/srv/www/social' | DIR "%UserProfile%\Downloads\friendica"*".tar.gz" && "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/rm' -Rf '/srv/www/social' |
| |
| ===== Restore Files ===== | ===== Restore Files ===== |
| |
| **** | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/mkdir' -p '/srv/www' |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/tar' -xzf '/mnt/c/Users/%UserName%/Downloads/friendica-files-'*'.tar.gz' -C '/srv/www' 'social' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/tar' -xzf '/mnt/c/Users/%UserName%/Downloads/friendica-files-'*'.tar.gz' -C '/srv/www' 'social' |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/chown' -R 'espionage724':'espionage724' '/srv/www/social' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/chown' -R 'espionage724':'espionage724' '/srv/www/social' |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/chmod' -R '0770' '/srv/www/social' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/chmod' -R '0770' '/srv/www/social' |
| |
| ===== Git Fix ===== | ===== Git Fix ===== |
| ipconfig | ipconfig |
| |
| "notepad.exe" "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social\config\local.config.php" | "%SystemRoot%\System32\notepad.exe" "\\wsl.localhost\openSUSE-Tumbleweed\srv\www\social\config\local.config.php" |
| |
| <code> | <code> |
| * [[#database|Initial set-up]] | * [[#database|Initial set-up]] |
| |
| "%ProgramFiles%\MariaDB 12.2\bin\mariadb.exe" -u "root" --execute="CREATE DATABASE friendica" | "%ProgramFiles%\MariaDB 12.3\bin\mariadb.exe" -u "root" --execute="CREATE DATABASE friendica" |
| | |
| | "%ProgramFiles%\MariaDB 12.3\bin\mariadb.exe" -u "root" "friendica" < "%UserProfile%\Downloads\friendica.sql" |
| | |
| | ===== Etc ===== |
| | |
| | "%SystemRoot%\System32\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 |
| | |
| | "%SystemRoot%\System32\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 |
| | |
| | "%SystemRoot%\System32\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 |
| | |
| | "%SystemRoot%\System32\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 |
| | |
| | "%SystemRoot%\System32\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 |
| |
| "%ProgramFiles%\MariaDB 12.2\bin\mariadb.exe" -u "root" "friendica" < "%UserProfile%\Downloads\friendica.sql" | "%SystemRoot%\System32\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 |
| |