无权访问此服务器上的/******* .php

时间:2012-12-21 12:21:13

标签: php file-permissions

我已经从高到低寻找类似的问题,是的很多,虽然没有任何帮助有帮助。

所有文件都上传到实际网站,没有使用XAMMP测试服务器的错误,文件权限设置744 r/w/x用户r/r 来宾和群组,但当我去访问文件时无权访问/*******.php

是否有一些我错过的东西,因为我一直试图解决这个问题。

提前致谢!

编辑:

直播服务器上的htaccess文件 - 看起来很不一样!

Options +Indexes  
RemoveHandler .html  
RemoveType .html  
AddType text/html .html  
Satisfy any  
Order Deny,Allow  
Allow from **********  
Deny from all
AuthType Basic  
AuthName "Access to /logs"

---------------------------------------新编辑------ --------------- 右边发现了我的问题,无法获得访问htaccess文件的权限,此链接解释http://tips.webdesign10.com/web-hosting/why-you-should-never-use-1and1-com-hosting从不使用1and1。

1 个答案:

答案 0 :(得分:0)

检查您的虚拟主机配置并检查您是否与此类似:

<Directory "your/path/to/document/root">
  Options Indexes FollowSymLinks
  AllowOverride all
  Order Allow,Deny
  Allow from all
</Directory>