PHP脚本403禁止错误 [英] php script 403 forbidden error

查看:97
本文介绍了PHP脚本403禁止错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个脚本给我错误403 Forbidden error,它只是另一个脚本的副本,但是区别在于两者都使用另一个mysql类来访问数据库.

I have a script giving me error 403 Forbidden error, it's just a copy of another script but the difference in this is that both use another mysql class to access database.

我的整个项目已经完成,这是最后一个文件,所以我不想为一个文件再次进行整个工作.

My whole project is complete and this is last file so I don't want to do the whole work again for a single file.

服务器日志显示客户端被服务器配置拒绝:

我应该找什么?

我尝试了以下操作:

  • 权限为644
  • 仅具有简单回显的新文件也给出了403
  • 更改文件夹的名称

但是,index.php效果很好.

推荐答案

如果您拒绝了.htaccess文件中的所有文件,则会发生此问题.进行更改可以解决问题.

This isssue occurs if you have had denied for all in .htaccess file. Changing that resolves the issue.

这篇关于PHP脚本403禁止错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆