我刚安装了XAMPP并创建了我的文件夹" projects"在: /家庭/克莱门特/工作区/ WWW /项目 但是当我想访问这个文件夹时,我有一个错误403 Forbiden Access。我认为我的httpd-xampp.conf中存在问题,但我无法找到它。
这是conf文件:
#<IfDefine PHP4>
#LoadModule php4_module modules/libphp4.so
#</IfDefine>
#<IfDefine PHP7>
#LoadModule php7_module modules/libphp7.so
#</IfDefine>
# We will enable it by default
#<IfDefine PHP>
LoadModule php7_module modules/libphp7.so
#</IfDefine>
LoadModule perl_module modules/mod_perl.so
Alias /phpmyadmin "/opt/lampp/phpmyadmin"
Alias /phpsqliteadmin "/opt/lampp/phpsqliteadmin"
# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
<Directory "/opt/lampp/phpsqliteadmin">
AllowOverride AuthConfig Limit
Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
# since LAMPP 1.0RC1
AddType application/x-httpd-php .php .php3 .php4
XBitHack on
# since 0.9.8 we've mod_perl
<IfModule mod_perl.c>
AddHandler perl-script .pl
PerlHandler ModPerl::PerlRunPrefork
PerlOptions +ParseHeaders
PerlSendHeader On
</IfModule>
# demo for mod_perl responsehandler
#PerlModule Apache::CurrentTime
#<Location /time>
# SetHandler modperl
# PerlResponseHandler Apache::CurrentTime
#</Location>
# AcceptMutex sysvsem is default but on some systems we need this
# thanks to jeff ort for this hint
#AcceptMutex flock
#LockFile /opt/lampp/logs/accept.lock
# this makes mod_dbd happy - oswald, 02aug06
# mod_dbd doesn't work in Apache 2.2.3: getting always heaps of "glibc detected *** corrupted double-linked list" on shutdown - oswald, 10sep06
#DBDriver sqlite3
我确切地说我链接到了htdocs和我的文件夹。
答案 0 :(得分:0)
尝试将端口从80更改为端口8080。 或者看看这篇文章可能会帮助你解决问题。 New xampp security concept: Access Forbidden Error 403 - Windows 7 - phpMyAdmin
答案 1 :(得分:-1)
将以下内容添加到您的conf文件中:
<Directory " /home/clement/Workspace/www/projects">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>