Skip to content
Advertisement

XAMPP localhost – Access denied error 403 after changing directory

I’m using php storm for a project and I tried to change from the built in web server to the apache one as it messed with my url redirections.

Using a mac, I changed the directory to this one :

JavaScript

After restarting the server, typing localhost in the search bar should direct me to the index.php file but I get :

error 403 access denied enter image description here

This is the project structure :

enter image description here

I also configured the xampp server in the deployment like this : enter image description here

The error log for the apache server give me these, so I tried reading on modifying permissions using sudo and chmod but I honestly dont know what i’m doing.

JavaScript

Advertisement

Answer

I would not advise serving from Users folder. Create a new folder in the root of your C drive and serve from there. Also make sure that you have access permissions granted.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement