MAC OS X Xampp Access forbidden

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
 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

403 error


Because Apache runs as the ‘nobody’ user by default, it may not have adequate permission to browse your OS X user directory or some of its subdirectories, in which case you’ll see a 403 ‘access forbidden’ error when you try and view your development site. Similarly, you may find that although you can view your dev site, PHP throws errors when you attempt to write files or make directories on the filesystem.


To fix this you can configure Apache to run as your OS X user. Open /Applications/XAMPP/xamppfiles/etc/httpd.conf and look for the following lines:


# User/Group: The name (or #number) of the user/group to run httpd as.

# It is usually good practice to create a dedicated user and group for

# running httpd, as with most system services.


User daemon

Group daemon 


Change User to your OS X username, and save the file:


User yourusername

Restart Apache and you should now be able to navigate your site without any issues, including manipulating files and folders using PHP.


0 Bình luận

Trở về
  • HTML5 Canvas
  • HTML5 Canvas

     The <canvas> element is used to draw graphics, on the fly, on a web page. Draw a red rectangle, a gradient rectangle,...