cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Apps and Installations

Have a question about a Dropbox app or installation? Reach out to the Dropbox Community and get solutions, help, and advice from members.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Permissions error after Mac migration / localhost

Permissions error after Mac migration / localhost

ramennoodles
Helpful | Level 5
Go to solution

Hey everyone! The Dropbox app recently moved my Dropbox folder in to the Library and now my web development environment isn't working properly. Whenever I go to my 'localhost', I get error messages. 

 

The error messages I am receiving are:

- "Forbidden. You don't have permission to access / on this server."  (MAMP 5.3)

- "Forbidden. You don't have permission to access this resource. Server unable to read htaccess file, denying access to be safe." (MAMP 6.8)

 

My setup:

- I keep my development files on Dropbox

- I use MAMP as a PHP server

- Mac Ventura 13.3

 

Help! 

 

1 Accepted Solution

Accepted Solutions

ramennoodles
Helpful | Level 5
Go to solution

hey @maxymouse, try changing the port setting in the MAMP preferences. I changed mine from 80 to 8080 and it's working?? Speculation: port 80 is being used by something else. Can you try this and see if it works on your end?

View solution in original post

10 Replies 10

Megan
Dropbox Staff
Go to solution

Hi @ramennoodles, welcome to our Community! 

 

After this recent app change, does this error happen with all of your development files in Dropbox?

 

Could you also attach some screenshots of the error, in order for me to have a visual too?

 

Keep me posted, and we'll take it from there!


Megan
Community Moderator @ Dropbox
dropbox.com/support


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!
:arrows_counterclockwise: Interested in Community Groups? Click here to join!

ramennoodles
Helpful | Level 5
Go to solution

Screenshot 2023-04-19 at 3.48.50 PM.png

Hey Megan, thanks for looking into this. I directly opened an HTML file from my Dropbox in my browser and it works. However, I can't access the same file through 'localhost'. In MAMP, you can set a default directory, so I've tried updating that to point to other folders with no success. 

 

Looking again at my environment: Dropbox files (PHP) > MAMP > Safari browser. Perhaps there is something to going on with Dropbox + MAMP settings. 

Jay
Dropbox Staff
Go to solution

Hi @ramennoodles. it's possible that MAMP doesn't support the new location, so I'd recommend contacting them for further support on this matter. 


Jay
Community Moderator @ Dropbox
dropbox.com/support


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!
:arrows_counterclockwise: Interested in Community Groups? Click here to join!

maxymouse
Explorer | Level 4
Go to solution

I use a tool called MAMP to view websites in development, which I keep in Dropbox, and I've always set the VirtualHost document root to this:

 

/Users/maxymouse/Dropbox/

 

That no longer works, so I've been trying other options, but nothing seems to work. E.g.

 

/Library/CloudStorage/Dropbox/

/Users/maxymouse/Library/CloudStorage/Dropbox/

 

No matter what I do, trying to visit web pages in the browser gives "403 Forbidden: You don't have permission to access this resource."

Am I getting the file path wrong, or are there some permissions I need to set, or is it just impossible to keep these files in Dropbox any more?

Thanks for any help. (Using Mac Ventura 13.3.1)

maxymouse
Explorer | Level 4
Go to solution

Ah, looks like the same question was asked a few days ago: https://www.dropboxforum.com/t5/Apps-and-Installations/Permissions-error-after-Mac-migration-localho...

Looks like I'm out of luck. 

ramennoodles
Helpful | Level 5
Go to solution

I haven't solved it yet; but I am looking into MAMP settings.

I ran an experiment where I installed PHP through Homebrew to test and their web server and localhost is accessible.

 

ramennoodles
Helpful | Level 5
Go to solution

hey @maxymouse, try changing the port setting in the MAMP preferences. I changed mine from 80 to 8080 and it's working?? Speculation: port 80 is being used by something else. Can you try this and see if it works on your end?

maxymouse
Explorer | Level 4
Go to solution

Thanks very much, @ramennoodles. I played around with it over the week end and also found that I got it working using the default ports (8888). Before that, I moved the files out of Dropbox and still found that port 80 wasn't working, but I doubt I have anything else on this computer that could be using port 80 (it's never been a problem before), so I suspect Apple may have added some restrictions to using port 80, although this sort of thing is way over my head. If ports 8080 and 8888 work, that's good enough for me! (It makes no difference, except that the URLs are a bit uglier. Meh.)

I was wondering if I should bother moving the files back into Dropbox, but your post has at least confirmed that I could definitely do that. I ended up putting them in the Documents folder and using Dropbox Backup, which also serves as a way to back up files. Now I'm wondering if I should bother moving the files back into Dropbox proper, given that they're backed up anyway. 

 

Anyhow, thanks again for looking into it and posting your findings!

Walter
Dropbox Staff
Go to solution

Hey @maxymouse, sorry to jump in here, but are you still having issues with this? 

 

If so, you can try granting MAMP full disk access permission and if it persists, you might need to reach out to MAMP for further assistance.

 

In any case, please keep us posted!


Walter
Community Moderator @ Dropbox
dropbox.com/support


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!
:arrows_counterclockwise: Interested in Community Groups? Click here to join

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    maxymouse Explorer | Level 4
  • User avatar
    Walter Dropbox Staff
  • User avatar
    ramennoodles Helpful | Level 5
What do Dropbox user levels mean?