您好,在服务器终端执行
- vim /www/server/nginx/conf/enable-php.conf
- location ~ [^/]\.php(/|$)
- {
- try_files $uri =404;
- fastcgi_pass unix:/tmp/php-cgi-80.sock;
- fastcgi_index index.php;
- include fastcgi.conf;
- }
复制代码 不要照搬,/tmp/php-cgi-*.sock这个文件按照自己的文件来写,最后再重启nginx和php-fpm- service nginx restart
- service php-fpm restart
复制代码
|