DEV Community

Cover image for How to Fix Error 403 "Forbidden Access: New XAMPP security concept" on MacBook
Josephine Hardy 🌿
Josephine Hardy 🌿

Posted on

How to Fix Error 403 "Forbidden Access: New XAMPP security concept" on MacBook

If you're reading this article you've probably attempted to access the phpMyAdmin link in XAMPP only to receive the following "Forbidden Access" error:

XAMPP Access Forbidden error 403

This article will show you how to fix this issue on Mac. If you're using a PC the solution is the same but navigating the steps will look a little different on your computer.

I am using a MacBook Pro running macOS Mojave v.10.14.6

Before we get started make sure you have completed the following:

  • Installed and opened XAMPP
  • Started running your stack services: ProFTPD, Apache, and MySQL

How to Fix XAMPP Error 403

Step 1: Open Volumes tab in XAMPP app

First, open the XAMPP app on your Mac and navigate into the Volumes tab

xampp general settings

Step 2: Click on 'Mount'

Next, you're going to mount the opt/lampp directory onto your computer.

Alt Text

Step 3: Click on 'Explore'

Alt Text

Step 4: Open the 'etc' folder

By clicking on explore your app should have opened the lampp directory. In it you'll see many folders and files. Click on the one named 'etc'.

lampp folder etc

Step 5: Open the 'extra' folder

lampp folder etc extra

Step 6: Open the 'httpd-xampp.conf' file

httpd-xampp conf file

Step 7: Find the AuthConfig requirements code

Search for 'phpmyadmin' in the httpd-xampp.conf code and find the following section:

httpd-xampp phpmyadmin require all granted

Step 8: Change 'Require local' to 'Require all granted'

This is the step that will fix the 403 error. Change the line of code to replace 'Require local' with 'Require all granted'. Then save your file.

Alt Text

Step 9: Restart all services

Navigate back to the XAMPP app and click on 'Services', then 'Restart all'. This will restart all of the services. You'll notice the status lights turn yellow and eventually return back to green.

Alt Text

Step 10: Refresh the phpMyAdmin page

The last step is to refresh the phpMyAdmin page you had open earlier.

If you closed it, no problem, just return to the General tab on your XAMPP app and click 'Go to Application'. That will open the dashboard in your browser where you can again navigate to the phpMyAdmin page.

Your phpMyAdmin page should load and look like this:

Alt Text

Top comments (17)

krkd profile image

If you access phpMyAdmin through your local address,, instead of your external address, everything should work perfectly well without the adjustments you described - they can potentially pose a security risk that could be avoided.

Of course, if you want to access phpMyAdmin from an external address, then your post is quite helpful.

codesensei profile image
Tsowa Babangida

Thank you so much😭

tripol profile image

Thanks a lot. This worked perfectly as described

i_am_leon_a profile image
I Am Leon

You are a legend, thank you for your help :)

c2cortes profile image
Cristian Cortés

I love you :p

putroandrianto profile image
Andrianto Cahyono Putro

its works, thanks

audelglz profile image
Audel Gonzalez

Thank you!

lthfiazhari profile image

thankyou dude

tripol profile image
Ekanem • Edited

This post was a lifesaver. Thanks Josephine

PS: I'm just realising that this post bailed me out some months back and I had left a comment of appreciation then even though I forgot about it

abhigk profile image

Thank you very much, Josephine. You just saved my day :)

chamxy profile image

Thank you... i been installing xampp for windows easily for a decade but with MAC.... my head aches since i got my MAC🥺

willmaxbit profile image

I just got a mac and followed this, it unfortunately didn't work for me, still getting access forbidden.

calebcadainoo profile image
Caleb Crosby Adainoo

Worked for me 100% 😉

lennysunbeam profile image

I love the internet ❤️

nitanurqarinah profile image

thank you!