| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| servers:windows:nginx:friendica [2026/03/11 21:43] – [Firewall] Sean Rhone | servers:windows:nginx:friendica [2026/04/15 10:03] (current) – [PHP-FPM] Sean Rhone |
|---|
| |
| * [[windows;10_ltsc_server|Windows 10 (21H2)]] | * [[windows;10_ltsc_server|Windows 10 (21H2)]] |
| * [[servers;windows;freenginx_php_php-cgi|freenginx]] | * [[servers;windows;nginx_php_php-cgi|nginx]] |
| * [[servers;windows;nginx;lets_encrypt|Certbot (Let's Encrypt)]] | * [[servers;windows;nginx;lets_encrypt|Certbot (Let's Encrypt)]] |
| * [[servers;windows;mariadb|MariaDB]] | * [[servers;windows;mariadb|MariaDB]] |
| |
| * [[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 |
| |
| "%SystemRoot%\System32\netsh.exe" advfirewall firewall delete rule name="MariaDB Server" | "%SystemRoot%\System32\netsh.exe" advfirewall firewall delete rule name="MariaDB Server" |
| |
| 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" | 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 ====== |
| CD "%Temp%" | CD "%Temp%" |
| |
| START "Social PHP-FPM" /MIN "%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 | 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> |
| |
| "%SystemRoot%\System32\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.3\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" |
| |
| ::"%SystemRoot%\System32\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.3\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> |
| |
| ====== 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 ===== |
| ===== Folder ===== | ===== Folder ===== |
| |
| * TODO: Might be faster doing the ''tar'' within WSL | **** |
| |
| "%SystemRoot%\System32\tar.exe" -czf "%UserProfile%\Downloads\friendica-files-manual-%RANDOM%.tar.gz" -C "//wsl.localhost/openSUSE-Tumbleweed/srv/www" "social" | "%SystemRoot%\System32\tar.exe" -czf "%UserProfile%\Downloads\friendica-files-manual-%RANDOM%.tar.gz" -C "//wsl.localhost/openSUSE-Tumbleweed/srv/www" "social" |
| **** | **** |
| |
| "%ProgramFiles%\MariaDB 12.3\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 ====== |
| ===== Restore Files ===== | ===== Restore Files ===== |
| |
| * TODO: ''mkdir /srv/www'' | "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/mkdir' -p '/srv/www' |
| |
| "%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' | "%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' |