Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mokujin

macrumors newbie
Original poster
Jan 17, 2015
4
0
Hello,

I changed
DocumentRoot to "/Users/dat/Dropbox/web"
<Directory "/Users/dat/Dropbox/web">

chmod web folder to 644 and get Forbidden.

Do you know what's wrong?
Thank you :)
 
Last edited:

Brian Y

macrumors 68040
Oct 21, 2012
3,776
1,064
Can you pastebin your entire config file, and ls -al /Users/Dropbox/dat/web.

Is anything shown in error.log?
 

mokujin

macrumors newbie
Original poster
Jan 17, 2015
4
0
Can you pastebin your entire config file, and ls -al /Users/Dropbox/dat/web.

Is anything shown in error.log?

Hi,
thank you for your reply.
I got this after ls -al /Users/thanhdat/Dropbox/www
Code:
total 0
drwxr-xr-x@  10 thanhdat  staff   340 Jan 18 21:59 .
drwx------@  16 thanhdat  staff   544 Jan 18 22:04 ..
drwxr-xr-x@   7 thanhdat  staff   238 Jan 18 22:00 bootstrap
drwxr-xr-x@  10 thanhdat  staff   340 Jan 18 22:00 learn
drwxr-xr-x@  10 thanhdat  staff   340 Jan 18 22:01 phpmyadmin
drwxr-xr-x@   8 thanhdat  staff   272 Jan 18 22:00 shop
drwxr-xr-x@   3 thanhdat  staff   102 Jan 18 22:00 tuanvu
drwxr-xr-x@ 100 thanhdat  staff  3400 Jan 18 22:01 upload
drwxr-xr-x@  77 thanhdat  staff  2618 Jan 18 22:01 vb3
drwxr-xr-x@  20 thanhdat  staff   680 Jan 18 22:00 xenforo

And error log:
Code:
[Sun Jan 18 22:17:05.622256 2015] [core:error] [pid 981] (13)Permission denied: [client 192.168.1.138:50698] AH00035: access to / denied (filesystem path '/Users/thanhdat/Dropbox/www') because search permissions are missing on a component of the path
[Sun Jan 18 22:17:05.834166 2015] [core:error] [pid 981] (13)Permission denied: [client 192.168.1.138:50698] AH00035: access to /favicon.ico denied (filesystem path '/Users/thanhdat/Dropbox/www') because search permissions are missing on a component of the path
[Sun Jan 18 22:17:08.234748 2015] [core:error] [pid 981] (13)Permission denied: [client 192.168.1.138:50698] AH00035: access to / denied (filesystem path '/Users/thanhdat/Dropbox/www') because search permissions are missing on a component of the path
[Sun Jan 18 22:17:08.332498 2015] [core:error] [pid 981] (13)Permission denied: [client 192.168.1.138:50698] AH00035: access to /favicon.ico denied (filesystem path '/Users/thanhdat/Dropbox/www') because search permissions are missing on a component of the path
 

jsavvy

macrumors regular
Aug 19, 2011
135
121
Is the error a 403 Forbidden error in the browser? If so, paste your site configuration.
 

mokujin

macrumors newbie
Original poster
Jan 17, 2015
4
0
Last edited:

Darth.Titan

macrumors 68030
Oct 31, 2007
2,905
753
Austin, TX
Your first post shows the root directory being at /Users/dat/Dropbox/web

Then you showed the ls -la results from /Users/thanhdat/Dropbox/www

Which is it, web or www?

Also, I'm assuming that you just included a snippet from your config file and that you have the requisite </Directory> tag (and everything in between).

Are you restarting Apache after changing the site config?
 

mokujin

macrumors newbie
Original poster
Jan 17, 2015
4
0
Your first post shows the root directory being at /Users/dat/Dropbox/web

Then you showed the ls -la results from /Users/thanhdat/Dropbox/www

Which is it, web or www?

Also, I'm assuming that you just included a snippet from your config file and that you have the requisite </Directory> tag (and everything in between).

Are you restarting Apache after changing the site config?

Hi,
sorry, it's /Users/thanhdat/Dropbox/www
(I could not remember exactly the dir)


I solved, http://wiki.apache.org/httpd/13PermissionDenied

Thanks all for your reply.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.