Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MAC OS X Xampp Access forbidden [closed]

Tags:

macos

xampp

I have installed the XAMPP in my MAC.

And i just tryed to open a folder and it's returned a error 403: Access forbidden!

I read on foruns that i need to change the httpd archive, but, after the changes, no change, the error Access forbidden! on my folder/sites continues.

The http.conf that i have changed are here: "Applications/XAMPP/xamppfiles/apache2/conf"

Alias /bitnami/ "/Applications/XAMPP/xamppfiles/apache2/htdocs/"
Alias /bitnami "/Applications/XAMPP/xamppfiles/apache2/htdocs"

    <Directory />
        Options All
        AllowOverride All
        Order deny,allow
        Allow from all
    </Directory>

Thanks!

like image 238
reidark Avatar asked Apr 09 '14 02:04

reidark


People also ask

How do I fix access forbidden in XAMPP?

Although XAMPP error 403 can be annoying, it's easy to solve whether you're using Windows, macOS, or Linux. All you have to do is edit the XAMPP httpd-xampp. conf file to ensure that everyone has access to phpMyAdmin. Then the 403 error should disappear right away.


2 Answers

This link is really helpful.

All you need is rights. I didn't enable virtual hosts.

I just replaced User daemon on User yourUserName in /Applications/XAMMP/xammpfiles/etc/httpd.conf, so I got access to my custom folders (through symlinks in htdocs folder in my case).

like image 117
crazzyaka Avatar answered Sep 21 '22 07:09

crazzyaka


Please type this in terminal and press enter

sudo chmod 777 /Applications/XAMPP/xamppfiles/htdocs/
like image 41
Ali Umair Avatar answered Sep 20 '22 07:09

Ali Umair