新足迹

 找回密码
 注册

精华好帖回顾

· 成长的烦恼,养娃那几年 (2012-10-1) ayeeda · 小学阶段足球方面的介绍 (2014-4-9) sun_tina
· 长城柴油X200 2.0T SUV提车和驾驶2天感受 (2012-2-12) 漂流南太平洋 · 陈年旧事系列24 -- 我与财运 (2006-12-10) SuiYi
Advertisement
Advertisement
查看: 4138|回复: 2

Linux Centos VPS服务器 error 403 问题, 求大腿们看看 [复制链接]

发表于 2016-12-8 12:27 |显示全部楼层
此文章由 eguan88 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 eguan88 所有!转贴必须注明作者、出处和本声明,并保持内容完整
我把我的一个摄影网站换到一个新的VPS服务器。

我自己按说明安装了Centos 6和 Centos Panel。

一个文件夹里凡是php文件都不能读取出现403的
错误

“Forbidden
You don't have permission to access /wp-content/themes/keres/templates/test.php on this server.“

连接
http://www.ozphotovideos.com/wp- ... /templates/test.php


其它文件类型就没有这个问题比如:
http://www.ozphotovideos.com/wp- ... templates/test.html
http://www.ozphotovideos.com/wp- ... /templates/test.txt

我应该怎么办才能通过网页游览器读取php文件?

Advertisement
Advertisement

发表于 2016-12-8 12:35 |显示全部楼层
此文章由 eguan88 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 eguan88 所有!转贴必须注明作者、出处和本声明,并保持内容完整
本帖最后由 eguan88 于 2016-12-8 13:36 编辑

已经解决。。。 原来是.htaccess 里面,不知道wordpress哪个plugin这样写

<FilesMatch "\.(?i:php)$">
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Deny from all  
  </IfModule>

发表于 2016-12-8 12:41 |显示全部楼层
此文章由 purplechilli 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 purplechilli 所有!转贴必须注明作者、出处和本声明,并保持内容完整
是不是 wp-content/themes/keres 文件夹给的权限不够

给个755上去试试

发表回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Advertisement
Advertisement
返回顶部