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 19:25] Sean Rhoneservers:windows:php_php-fpm_wsl [2025/11/21 01:08] (current) Sean Rhone
Line 8: Line 8:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[windows;11_ltsc_server|Windows 11 (24H2)]]+  * [[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 46: 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/phpNo such file or directory''))
-  * 2025/10/13: ''openSUSE-Tumbleweed'' has user ''group'' same as username+
  
-  "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.1760397947.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