| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| servers:windows:nginx:friendica [2025/11/21 02:07] – Sean Rhone | servers:windows:nginx:friendica [2025/11/29 01:08] (current) – Sean Rhone |
|---|
| ===== PHP ===== | ===== PHP ===== |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- nano '/etc/php8/fpm/php-fpm.d/social.conf' | "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/nano' '/etc/php8/fpm/php-fpm.d/social.conf' |
| |
| <code> | <code> |
| [social] | [social] |
| | listen = "127.0.0.1:9005" |
| |
| ; User/Group | |
| user = "espionage724" | user = "espionage724" |
| group = "espionage724" | group = "espionage724" |
| |
| ; Socket | |
| listen = "127.0.0.1:9005" | |
| listen.allowed_clients = "127.0.0.1" | listen.allowed_clients = "127.0.0.1" |
| |
| ; Process Management | |
| pm = "ondemand" | pm = "ondemand" |
| pm.max_children = "8" | pm.max_children = "8" |
| pm.process_idle_timeout = "30" | pm.process_idle_timeout = "30" |
| |
| ; openSUSE php.ini Defaults | php_value[error_reporting] = "~E_ALL" |
| php_value[session.save_path] = "/var/lib/php8/sessions" | php_value[display_errors] = "Off" |
| | php_value[log_errors] = "Off" |
| |
| ; General | |
| php_value[log_errors] = "0" | |
| php_value[error_reporting] = "~E_ALL" | |
| ;php_value[display_errors] = "On" | |
| php_value[date.timezone] = "America/New_York" | php_value[date.timezone] = "America/New_York" |
| php_value[max_execution_time] = "200" | php_value[max_execution_time] = "200" |
| php_value[max_file_uploads] = "100" | php_value[max_file_uploads] = "100" |
| php_value[register_argc_argv] = "On" | php_value[register_argc_argv] = "On" |
| | php_value[session.save_path] = "/var/lib/php8/sessions" |
| |
| ; End</code> | ; End</code> |
| @echo off | @echo off |
| |
| START "Social PHP-FPM" "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/sbin/php-fpm' -c '/etc/php8/fpm/php-fpm.d/social.conf' -F | START "Social PHP-FPM" /MIN "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/sbin/php-fpm' -c '/etc/php8/fpm/php-fpm.d/social.conf' -F |
| |
| :: End</code> | :: End</code> |
| |
| "%SystemDrive%\www\scripts\social\PHP-FPM.bat" | "%SystemDrive%\www\scripts\social\PHP-FPM.bat" |
| | |
| | ===== Worker ===== |
| | |
| | "notepad.exe" "%SystemDrive%\www\scripts\social\Worker.bat" |
| | |
| | <code> |
| | @echo off |
| | |
| | TITLE Social Worker |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/mnt/c/www/social" -- '/usr/bin/php' '/mnt/c/www/social/bin/console.php' worker |
| | |
| | :: End</code> |
| | |
| | "%SystemDrive%\www\scripts\social\Worker.bat" |
| |
| ===== Update ===== | ===== Update ===== |
| ===== Back-up ===== | ===== Back-up ===== |
| |
| * TODO | * ''D:\Servers\Scheduled Backups'' |
| |
| "notepad.exe" "%SystemDrive%\www\scripts\media\Back-up.bat" | "notepad.exe" "%SystemDrive%\www\scripts\social\Back-up.bat" |
| |
| <code> | <code> |
| @echo off | @echo off |
| | |
| | TITLE Social Back-up |
| |
| :: User\Downloads | :: User\Downloads |
| "tar.exe" -czf "%UserProfile%\Downloads\dokuwiki-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www\wiki" "data/pages" "data/meta" "data/media" "data/media_meta" "data/attic" "data/media_attic" "conf" | ::"tar.exe" -czf "%UserProfile%\Downloads\friendica-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "social" |
| | ::"%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "%UserProfile%\Downloads\%RANDOM%-friendica.sql" "friendica" |
| |
| :: NAS | :: NAS |
| ::"tar.exe" -czf "D:\Servers\Scheduled Backups\dokuwiki-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www\wiki" "data/pages" "data/meta" "data/media" "data/media_meta" "data/attic" "data/media_attic" "conf" | "tar.exe" -czf "D:\Servers\Scheduled Backups\friendica-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "social" |
| | "%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "D:\Servers\Scheduled Backups\%RANDOM%-friendica.sql" "friendica" |
| |
| :: End</code> | :: End</code> |
| |
| "%SystemDrive%\www\scripts\media\Back-up.bat" | "%SystemDrive%\www\scripts\social\Back-up.bat" |
| |
| ===== Maintenance ===== | ===== Maintenance ===== |
| <code> | <code> |
| @echo off | @echo off |
| | |
| | TITLE Social Git Fix |
| |
| RMDIR /S /Q "%SystemDrive%\www\social\.git" | RMDIR /S /Q "%SystemDrive%\www\social\.git" |
| ====== Task Scheduler ====== | ====== Task Scheduler ====== |
| |
| * :!: TODO | **** |
| |
| taskschd.msc | taskschd.msc |
| | |
| | ===== Worker ===== |
| | |
| | * TODO: On-login, every 15 minutes |
| | |
| | Social Worker |
| | |
| | "%SystemDrive%\www\scripts\social\Worker.bat" |
| |
| ===== Update ===== | ===== Update ===== |
| |
| * ''12:00:00 AM'' daily | * ''4:00:00 AM'' daily |
| |
| Wiki Update | Social Update |
| |
| "%SystemDrive%\www\scripts\wiki\Update.bat" | "%SystemDrive%\www\scripts\social\Update.bat" |
| |
| ===== Back-up ===== | ===== Back-up ===== |
| |
| * Weekly -> Recur every ''1'' weeks on ''Monday'' | * Monthly -> All months -> Days: ''5'' |
| * ''12:15:00 AM'' | * ''4:15:00 AM'' |
| |
| Wiki File Back-up | Social Back-up |
| |
| "%SystemDrive%\www\scripts\wiki\Back-up.bat" | "%SystemDrive%\www\scripts\social\Back-up.bat" |
| |
| ===== Maintenance ===== | ===== Maintenance ===== |
| |
| * Monthly -> All months -> Days: ''1'' | * Monthly -> All months -> Days: ''5'' |
| * ''12:30:00 AM'' | * ''4:30:00 AM'' |
| |
| Wiki Maintenance | Social Maintenance |
| |
| "%SystemDrive%\www\scripts\wiki\Maintenance.bat" | "%SystemDrive%\www\scripts\social\Maintenance.bat" |
| |
| ====== Service ====== | ====== Service ====== |
| * Every 10 minutes (([[https://wiki.friendi.ca/docs/install#required_background_tasks|info]])) | * Every 10 minutes (([[https://wiki.friendi.ca/docs/install#required_background_tasks|info]])) |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/nano' '/etc/systemd/system/social-d.timer' && "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/systemctl' daemon-reload && "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/systemctl' enable 'social-d.timer' --now && "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/systemctl' start 'social-d' && "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/systemctl' status 'social-d' -l | "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/nano' '/etc/systemd/system/social-d.timer' && "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/systemctl' daemon-reload && "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/systemctl' enable 'social-d.timer' --now && "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/systemctl' start 'social-d' && "wsl.exe" --distribution openSUSE-Tumbleweed -- '/usr/bin/systemctl' status 'social-d' -l |
| |
| <code> | <code> |