apt install nginx php-fpm -y
sudo useradd -g php_user php_user
$ cat /etc/php/8.2/fpm/pool.d/dnsmasq.conf
listen = /var/run/php-fpm-dnsmasq.sock
php_admin_value[disable_functions] = exec,passthru,shell_exec,system
php_admin_flag[allow_url_fopen] = off
; Choose how the process manager will control the number of child processes.
pm.max_spare_servers = 20
pm.process_idle_timeout = 10s
# 注意上面的listen.owner和group是nginx运行的用户名和用户组
root /var/www/html/dnsmasq;
access_log /var/log/nginx/dnsmasq-access.log;
error_log /var/log/nginx/dnsmasq-error.log error;
index index.html index.htm index.php;
try_files $uri $uri/ /index.php$is_args$args;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-fpm-dnsmasq.sock;