User Tools

Site Tools


servers:windows:php_php-fpm_wsl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
servers:windows:php_php-fpm_wsl [2025/10/13 13:31] – [Prerequisites] Sean Rhoneservers:windows:php_php-fpm_wsl [2026/01/29 21:30] (current) Sean Rhone
Line 1: Line 1:
 ====== Information ====== ====== Information ======
  
-  * PHP+  * PHP ((https://www.php.net/))
   * PHP-FPM   * PHP-FPM
-  * [[information:realm_of_espionage|Realm of Espionage]]+  * WSL ((https://learn.microsoft.com/en-us/windows/wsl/about)) 
 +  * [[information;realm_of_espionage|Realm of Espionage]]
  
 ===== Prerequisites ===== ===== Prerequisites =====
  
 +  * [[windows;10_ltsc_server|Windows 10 (21H2)]]
   * [[windows;notes;wsl|WSL]]   * [[windows;notes;wsl|WSL]]
-  * [[windows;opensuse_tumbleweed_wsl|openSUSE Tumbleweed]]+  * [[windows;opensuse_tumbleweed_wsl|openSUSE Tumbleweed (WSL)]]
  
 ====== Dependencies ====== ====== Dependencies ======
Line 14: Line 16:
 **** ****
  
-  "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- zypper install --no-confirm php8-cli php8-fpm php8-opcache+  "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/zypperinstall php8-cli php8-fpm php8-opcache
  
 ====== Information ====== ====== Information ======
Line 20: Line 22:
 **** ****
  
-  "wsl.exe" --distribution openSUSE-Tumbleweed -- '/usr/bin/php' -m+  "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/php' -m
  
 ====== Services ====== ====== Services ======
Line 28: Line 30:
 **** ****
  
-  "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- systemctl disable 'php-fpm' --now+  "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/systemctldisable 'php-fpm' --now
  
 ====== Config Defaults ====== ====== Config Defaults ======
Line 34: Line 36:
 ===== php-fpm Default Pool ===== ===== php-fpm Default Pool =====
  
-  "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- mv -'/etc/php8/fpm/php-fpm.d/www.conf' '/etc/php8/fpm/php-fpm.d/www.conf~'+  "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/mv-fv '/etc/php8/fpm/php-fpm.d/www.conf' '/etc/php8/fpm/php-fpm.d/www.conf~'
  
-  "wsl.exe" --distribution openSUSE-Tumbleweed -- '/usr/bin/nano' '/etc/php8/fpm/php-fpm.d/www.conf~'+  "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/nano' '/etc/php8/fpm/php-fpm.d/www.conf~'
  
 ===== php.ini ===== ===== php.ini =====
Line 42: Line 44:
 **** ****
  
-  "wsl.exe" --distribution openSUSE-Tumbleweed -- '/usr/bin/nano' '/etc/php8/cli/php.ini' +  "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/nano' '/etc/php8/cli/php.ini'
- +
-====== logrotate ====== +
- +
-  * Sets ''php-fpm.log'' permissions so ''php-fpm'' can run non-root +
- +
-  "wsl.exe" --distribution openSUSE-Tumbleweed +
- +
-  sudo rm -f '/var/log/php-fpm.log' && echo 'x' | sudo tee '/var/log/php-fpm.log' > '/dev/null' +
- +
-  sudo -e '/etc/logrotate.d/99-php-fpm.log' && sudo sed -i 's/'CHANGEME'/'$USER'/g' '/etc/logrotate.d/99-php-fpm.log' +
- +
-<code> +
-'/var/log/php-fpm.log'+
-    create '0640' 'CHANGEME' 'CHANGEME' +
-    daily +
-    rotate 0 +
-    nocompress +
-    missingok +
-    notifempty +
-    nocopy +
-    nomail +
-    noshred +
-+
- +
-# End</code> +
- +
-  sudo logrotate --force '/etc/logrotate.d/99-php-fpm.log' +
- +
-  exit+
  
/usr/local/www/wiki/data/attic/servers/windows/php_php-fpm_wsl.1760376676.txt.gz · Last modified: by Sean Rhone