这里先修改nginx配置文件,用来包括php-fpm功能:
nginx
php-fpm
备份一下:
[root@NEWZABBIXSERVER conf]# cp nginx.conf nginx.conf.ori.20221102[root@NEWZABBIXSERVER conf]#
然后编辑:
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ .php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html$fastcgi_script_name; include fastcgi_params; }
服务热线
1391-024-6332