Harshal J. Sathe.
Harshal J. Sathe.

Reputation: 74

How to solve XAMPP PHPMyAdmin 403 Forbidden Error

I am using Apache/2.4.41 (Win64) OpenSSL/1.0.2s PHP/7.1.32 my phpmyadmin is suddenly not accessible its shows following error:

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.

I had tried everything but still not able to get it right

Upvotes: 1

Views: 5792

Answers (2)

Md. Zahangir Alam
Md. Zahangir Alam

Reputation: 557

Go to below file

C:\xampp\apache\conf\extra\httpd-xampp.conf

Then go to Directory tag as below:

<Directory "C:/xampp/phpMyAdmin">

and then in the Directory tag change as below:

From

Require local

To

Require all granted

Restart the Xampp

That's it!

Upvotes: 1

Yan Mello
Yan Mello

Reputation: 11

I had some error like this once, I just edit the httpd-xampp.conf from Require local to Require all granted in the LocationMatch tag. Or configure the http-vhosts.conf Directory tag to

<Directory>
     Options Indexes FollowSymLinks Includes ExecCGI
     AllowOverride none
     Require all granted
</Directory>

I hope it helps you!

Upvotes: 1

Related Questions