Home > Backend Development > PHP Tutorial > 安装完nginx和php-fpm后,在firefox浏览器中打开php页面时显示下载框,而不是直接的页面?

安装完nginx和php-fpm后,在firefox浏览器中打开php页面时显示下载框,而不是直接的页面?

WBOY
Release: 2016-06-20 12:43:08
Original
916 people have browsed it

nginx和php-fpm服务已经开启,nginx配置文件关于php的处理配置如图

我的php页面写在/usr/share/nginx/html中
请问该如何操作,谢谢


回复讨论(解决方案)

确定php-fpm服务已经开启。如果确认php-fpm服务已经开启,把配置中的root选项去掉试试。root放在另外的规则里面,比如要访问的是一些资源文件啊什么的。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template