-- C#, Genel

Access forbidden! Xampp Hatası

Access forbidden!

You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.

Error 403

Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9
 Xampp ile çalışırken bu hatayı alıyorsanınız çözüm basit. Aşağıdaki adımları takip edin.
“(KURULUM YOLU)/xampp/apache/conf/extra/httpd-xampp.c­onf” bu dosyanın içerisinde

<Directory “D:/DEV/xampp/php”>
AllowOverride None
Options None
Require all denied
<Files “php-cgi.exe”>
Require all granted
</Files>
</Directory>

bu satırı
<Directory “D:/DEV/xampp/php”>
AllowOverride None
Options None
Allow all denied
<Files “php-cgi.exe”>
Require all granted
</Files>
</Directory>

bu satır ile değiştirin.

Son olarak apache‘ye restart atın ve sayfasını yenileyin. Hatanın ortadan kalktığını göreceksiniz.

Kaynak: http://httpd.apache.org/docs/2.2/howto/access.html