Xampp Access Forbidden PHP

XAMPP Access Forbidden

I have experienced this problem and found out that localhost link is not configured in
httpd_vhosts.conf.
So I added this line at the bottom part of httpd_vhosts.conf

<VirtualHost *:80>
DocumentRoot "E:/xampp/htdocs"
ServerName localhost
</VirtualHost>

MacOS XAMPP Access Forbidden Error 403 - You don't have permission to access the requested directory

I wound up having to edit httpd.conf again. There’s a section for User group permissions. By default it says

User daemon
Group daemon

Change the User from daemon to your macOS Username. For me, my User group now looks like

User danielschnoll
Group daemon

XAMPP localhost - Access denied error 403 after changing directory

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.

DocumentRoot "/folder_one/folder_two"

<Directory "/folder_one/folder_two">

Require all granted

</Directory>


Related Topics



Leave a reply



Submit