views:

31

answers:

2

Whenever I install a library that requires using subdirectories, it seems like I have to go to chmod hell. How can I make it where all subdirectories are accessible by PHP?

C:\Library\Webserver\Documents is the current root of my webserver.

+2  A: 

Use the -R switch when doing chmod, and it will set the permissions on all the subdirectories as well.

chmod -R somedirectory/
Banjer
+1  A: 

Often times the Apache process runs under the user "nobody". Try

chown nobody /Library/Webserver/Documents

Also, if you run chmod recursively it will affect child directories

chmod -R /some folder/
Jeremy Morgan