Home > Backend Development > PHP Tutorial > 运行php文件时出现403错误,怎么配置phpnow让php正常显示?

运行php文件时出现403错误,怎么配置phpnow让php正常显示?

WBOY
Release: 2016-06-23 13:58:26
Original
899 people have browsed it

运行php文件时出现403错误,怎么配置phpnow让php正常显示?


回复讨论(解决方案)

直接运行localhost能不能行?再不行重装个phpnow吧,换个高版本的

localhost 可以运行,但某些文件夹下的php不能运行

那可能是有些目录下有.htaccess重定向了。
一般框架的这类目录安全起见不允许直接访问的。

403错误 是目录没有权限
 
要在 apache安装目录里面的 conf/httpd.conf //这个页面进行设置

   
     Options FollowSymLinks
     AllowOverride None
     Order deny,allow
     allow from all

楼上正解!!!

Related labels:
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