Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Apache- Forbidden Access 403

I have Macbook Pro with OSX 10.8.2.


I am trying to get the Apache2 server running. I did necessary steps and for http//localhost it gives me a successful message saying "It works!"


Problem happens when I try to get it work for localhost/~username. I get


"You don't have permission to access /~hrishikeshrajpathak on this server."


I explored this problem and came across many posts where people have faced the same issue and it got resolved by adding username.conf file in /etc/apache2/users with following contents:


<Directory "/Users/USERNAME/Sites/">
Options Indexes Multiviews
AllowOverride All
Order allow,deny
Allow from all
</Directory>

Here I replaced USERNAME by my own user name. I also set the chmod properties. Even after doing all this, I still get the same forbidden error.



Any pointers where I should be looking for a solution?


Thanks!

MacBook Pro, OS X Mountain Lion (10.8.2)

Posted on Nov 19, 2012 2:19 PM

Reply
18 replies

Nov 7, 2013 2:11 AM in response to hrajpathak

Hi, i have a problem related to the set up of Apache Local Web Server on Mac OS X Lion 10.7.5.

I have correctly installed Apache (2.2.24) php (5.3.26) and MySql (5.5.22) but during the web access i get this message: 403 Forbidden and in the error_log i see this:


[Tue Nov 05 18:55:19 2013] [error] [client 10.202.145.171] client denied by server configuration: /Users/marcopuccetti/Sites/drupal-7.12


Before this i have modified the configuration of httpd.conf (DocumentRoot) file in order to point the Sites folder "Users/username/sites"; The same for users configuration file.


I have also enabled the Web Sharing properties in the System Preferences Section.


I have tried with the Frank Carreggiano solution but it's not still working.


This is the error reported:


[Thu Nov 07 11:04:00 2013] [error] [client ::1] client denied by server configuration: /Users/marcopuccetti/Sites


Have i to do any other settings? In particular which are the directives that decide the name of the Site folder?


Thank you!

Marco

Apache- Forbidden Access 403

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.