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


Tags: xampp, tutorial
Published: 2019-12-19 19:12:14

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](https://thepracticaldev.s3.amazonaws.com/i/kiwbyupb4jb94i85egu2.png)

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](https://www.apachefriends.org/index.html)
- 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](https://thepracticaldev.s3.amazonaws.com/i/o4rpmlmgh47q926q2h2b.png)

###Step 2: Click on 'Mount'

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

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/hu967anig1ez5yh2k846.png)

###Step 3: Click on 'Explore'

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/4qd68ut7w1mtvfq378ya.png)

###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](https://thepracticaldev.s3.amazonaws.com/i/1yjd5ngrqnugi8flnkof.png)

###Step 5: Open the 'extra' folder

![lampp folder etc extra](https://thepracticaldev.s3.amazonaws.com/i/nyekbs42kkmy727quzdv.png)

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

![httpd-xampp conf file](https://thepracticaldev.s3.amazonaws.com/i/oj91vcyafdupe8r3xsi5.png)

###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](https://thepracticaldev.s3.amazonaws.com/i/5jsmm72vwaiaiyuw7dzj.png)

###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](https://thepracticaldev.s3.amazonaws.com/i/g4zqwe5htn3oncrht1jf.png)

###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](https://thepracticaldev.s3.amazonaws.com/i/j6fh60wsjs1xi321wq7x.png)

###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](https://thepracticaldev.s3.amazonaws.com/i/h0lh5jd8xhoif8p6p7q6.png)