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:51] – [php-fpm Default Pool] Sean Rhoneservers:windows:php_php-fpm_wsl [2025/11/21 01:08] (current) Sean Rhone
Line 3: Line 3:
   * PHP   * PHP
   * PHP-FPM   * PHP-FPM
 +  * WSL ((Windows Subsystem for Linux))
   * [[information:realm_of_espionage|Realm of Espionage]]   * [[information:realm_of_espionage|Realm of Espionage]]
  
 ===== Prerequisites ===== ===== Prerequisites =====
  
 +  * [[windows;10|Windows 10 (21H2)]]
   * [[windows;notes;wsl|WSL]]   * [[windows;notes;wsl|WSL]]
   * [[windows;opensuse_tumbleweed_wsl|openSUSE Tumbleweed]]   * [[windows;opensuse_tumbleweed_wsl|openSUSE Tumbleweed]]
Line 44: Line 46:
   "wsl.exe" --distribution openSUSE-Tumbleweed -- '/usr/bin/nano' '/etc/php8/cli/php.ini'   "wsl.exe" --distribution openSUSE-Tumbleweed -- '/usr/bin/nano' '/etc/php8/cli/php.ini'
  
-====== logrotate ======+====== Symlink ======
  
-  * Sets ''php-fpm.log'' permissions so ''php-fpm'' can run non-root+  * 2025/11/20: Fixes Friendica ''console.php worker'' ((''sh: line 1: /usr/local/bin/php: No such file or directory''))
  
-  "wsl.exe" --distribution openSUSE-Tumbleweed +  "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- ln -s -'/usr/bin/php' '/usr/local/bin/php'
- +
-  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+
  
/var/www/wiki/data/attic/servers/windows/php_php-fpm_wsl.1760377860.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki