servers:windows:php_php-fpm_wsl
This is an old revision of the document!
Table of Contents
Information
- PHP
- PHP-FPM
Prerequisites
Dependencies
"wsl.exe" --distribution openSUSE-Tumbleweed --user root -- zypper install --no-confirm php8-cli php8-fpm php8-opcache
Information
"wsl.exe" --distribution openSUSE-Tumbleweed -- '/usr/bin/php' -m
Services
Disable
"wsl.exe" --distribution openSUSE-Tumbleweed --user root -- systemctl disable 'php-fpm' --now
Config Defaults
php-fpm Default Pool
"wsl.exe" --distribution openSUSE-Tumbleweed --user root -- 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~'
php.ini
"wsl.exe" --distribution openSUSE-Tumbleweed -- '/usr/bin/nano' '/etc/php8/cli/php.ini'
logrotate
- Sets
php-fpm.log
permissions sophp-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'
'/var/log/php-fpm.log' { create '0640' 'CHANGEME' 'CHANGEME' daily rotate 0 nocompress missingok notifempty nocopy nomail noshred } # End
sudo logrotate --force '/etc/logrotate.d/99-php-fpm.log'
exit
/srv/www/wiki/data/attic/servers/windows/php_php-fpm_wsl.1760377860.txt.gz · Last modified: by Sean Rhone