nginx1.16+php7.39配置笔记

vim /etc/nginx/conf.d/default.conf

修改php相关配置如下:

    location ~ \.php$ {
        root           /usr/share/nginx/html;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
        include        fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }

vim /etc/php/7.3/fpm/pool.d/www.conf

修改监听方式为127.0.0.1:9000

;listen = /run/php/php7.3-fpm.sock
listen = 127.0.0.1:9000

重启服务

systemctl restart php7.3-fpm

systemctl restart nginx

posted on 2019-09-07 10:02  剩余价值  阅读(833)  评论(0编辑  收藏  举报

导航