Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

ramennoodles's avatar
ramennoodles
Helpful | Level 5
3 years ago
Solved

Permissions error after Mac migration / localhost

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! 

 

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

10 Replies

Replies have been turned off for this discussion
  • Megan's avatar
    Megan
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    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!

  • ramennoodles's avatar
    ramennoodles
    Helpful | Level 5
    3 years ago

    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's avatar
    Jay
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    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. 

  • maxymouse's avatar
    maxymouse
    Explorer | Level 4
    3 years ago

    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)

  • ramennoodles's avatar
    ramennoodles
    Helpful | Level 5
    3 years ago

    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's avatar
    ramennoodles
    Helpful | Level 5
    3 years ago

    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's avatar
    maxymouse
    Explorer | Level 4
    3 years ago

    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's avatar
    Walter
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    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!

  • maxymouse's avatar
    maxymouse
    Explorer | Level 4
    3 years ago

    Thanks Walter. I have found a solution (mentioned above), and I didn't find giving MAMP full disk access made a difference, although it was worth a try! It seems to be more about Mac restricting access to port 80 … although I barely even know what that means!

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

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!