简体   繁体   English

禁止访问! Xampp 本地主机

[英]Access forbidden! Xampp localhost

Access forbidden!禁止访问!

You don't have permission to access the requested object.您无权访问请求的对象。 It is either read-protected or not readable by the server.它要么是读保护的,要么是服务器不可读的。

If you think this is a server error, please contact the webmaster.如果您认为这是服务器错误,请联系网站管理员。

Error 403错误 403

localhost Apache/2.4.23 (Unix) OpenSSL/1.0.2j PHP/5.6.28 mod_perl/2.0.8-dev Perl/v5.16.3本地主机 Apache/2.4.23 (Unix) OpenSSL/1.0.2j PHP/5.6.28 mod_perl/2.0.8-dev Perl/v5.16.3

i have tried adding this to my config file Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Allow from all Require all granted我已经尝试将此添加到我的配置文件选项索引 FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Allow from all 要求所有授予

went into my Xampp folder xampp/apache/conf/extra/httpd-xampp.conf editted that to Allow from all...still nothing ..same error.... any ideas?进入我的 Xampp 文件夹 xampp/apache/conf/extra/httpd-xampp.conf 将其编辑为 Allow from all...仍然没有 ..同样的错误....有什么想法吗?

Instead of copying and pasting my project folder into the htdocs directory I created a new folder with a new name and pasted the project files in it and it is working fine now. 我没有将项目文件夹复制并粘贴到htdocs目录中,而是创建了一个具有新名称的新文件夹,并将项目文件粘贴到其中,它现在可以正常工作。 I can't seem to be able to access the files if they are in the copied folder 如果文件位于复制的文件夹中,我似乎无法访问它们

Start by creating a new folder in htdocs.首先在 htdocs 中创建一个新文件夹。 Then Copy all your files to the new folder.然后将所有文件复制到新文件夹。

Instead of copying/moving the project folder to htdocs.而不是将项目文件夹复制/移动到 htdocs。 This should work这应该工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM