Error 403 Forbidden Access Denied Mac
Contents |
13 CommentsOS X 10.10 / 10.9 Sites Folder Sharing Not WorkingIf your user personal web sharing is not working for a user but
403 Forbidden Mac Fix
is OK at the other document root localhost level, the forbidden you don't have permission to access / on this server. mac issue may be a configuration file for the user.The higher document root level of http://localhost/ localhost 403 forbidden mac displays "It Works" but when going to the user level, http://localhost/~username/ you get the:Forbidden 403, You don't have permission to access /~username/ on this serverCheck
Localhost Forbidden Mac El Capitan
that you have a "username.conf" filed under:/etc/apache2/users/If you don't, then create one named by the short username of the account with the suffix .conf:Find your short username by typing in the TerminalwhoamiChange directory into the right directory:cd /etc/apache2/userssudo nano username.confFor OSX 10.9 Apache 2.2Then add the content below swapping
El Capitan Apache Forbidden
in your username:
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn localhost forbidden el capitan more about Stack Overflow the company Business Learn more about hiring developers or
Safari 403 Forbidden
posting ads with us Ask Different Questions Tags Users Badges Unanswered Ask Question _ Ask Different is a question and answer 403 forbidden you don't have permission to access / on this server site for power users of Apple hardware and software. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are https://coolestguidesontheplanet.com/forbidden-403-you-dont-have-permission-to-access-username-on-this-server/ voted up and rise to the top How to fix 403 in Mac OS X built-in Apache? up vote 14 down vote favorite 1 I'm trying to set a local environment on my new MacBook Air 13": built-in Apache with my own DocumentRoot, PHP, and MySQL. I usually update /etc/hosts just to run my local websites with a pretty permalink: local/example. For references, I usually check: How to turn http://apple.stackexchange.com/questions/95660/how-to-fix-403-in-mac-os-x-built-in-apache Mac OS X Lion into a web server? Enabling Apache in Mac OS X Mountaion Lion Apache permissions This time I'm simply getting a 403 Forbidden error every time I hit 127.0.0.1, localhost, or local. First I saw through the terminal that both Apache and PHP are running (even though I can't view PHP pages); then I updated all permissions according to Apache permissions; now I'm just desperate. Here are the relevant Apache configs: /etc/hosts (view file — added one line) /etc/apache2/httpd.conf (view file — updated the DocumentRoot) /etc/apache2/users/joao.conf (view file — created this file) /etc/apache2/extra/httpd-vhosts.conf (view file — updated VirtualHost) It looks like Apache is somehow denying me access to my DocumentRoot (which by the way is ~/Sites). Because ~/Sites is actually a symlink, I then tried to update DocumentRoot with the following paths (all pointing to the same directory): ~/Sites /Users/joao/Sites /Users/joao/Dropbox/Workflow/Sites (the original directory) Still throwing 403. Any ideas how to fix/debug this? Quick update — here's what my /var/log/apache2/joao.pt-error_log looks like: [Sun Jul 07 12:50:45 2013] [error] [client 127.0.0.1] (13)Permission denied: access to / denied [Sun Jul 07 12:50:45 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /favicon.ico denied [Sun Jul 07 12:50:45 2013] [error] [client 127.0.0.1] (13)Permission denied: access
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of http://stackoverflow.com/questions/25250566/apache-localhost-403-error-with-yosemite this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign 403 forbidden up Apache localhost 403 error with Yosemite up vote 37 down vote favorite 17 I've just installed Mac OS X Yosemite fresh. I configured Apache and chmodded "users/user/Sites" to 755. When I hit localhost I receive a 403 Forbidden "You don't have permission to access / on this server". The same thing occurs with any other sites I add to my hosts file. 403 forbidden mac I tried configuring user directories following help from this post. The guys on this MacRumors thread know there is an Apache issue, but didn't offer a lot of suggestions. My directory permissions look like this drwxr-xr-x 29 root wheel 1054 Aug 11 07:30 / drwxr-xr-x 6 root admin 204 Aug 11 07:29 /Users/ drwxr-xr-x+ 26 zachshallbetter staff 884 Aug 11 11:57 /Users/zachshallbetter/ 0: group:everyone deny delete drwxr-xr-x 5 zachshallbetter staff 170 Aug 11 10:16 /Users/zachshallbetter/Sites Can anyone offer any suggestions or help? Here are links to my hosts and httpd.conf files and error logs for reference. osx apache http-status-code-403 share|improve this question asked Aug 11 '14 at 19:05 Zach Shallbetter 62431334 Unless you just have a few web scripts, you should look into configuring Apache Virtual Hosts on Mac OS X instead of enabling user directories. –Jason McCreary Dec 4 '14 at 4:02 Two things: 1) The update resets the httpd.conf, so you'll need to re-include the vhost conf and re-enable the needed modules, as mahi outlines below. 2) Inside the "Directory" section of each vhost definition, add "Require all granted". This replace