On mac OS, I've enabled PHP but seem to have permission problems. How do I enable subdirectories?
Whenever I i开发者_开发知识库nstall 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.
Use the -R switch when doing chmod, and it will set the permissions on all the subdirectories as well.
chmod -R somedirectory/
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/
精彩评论