开发者

On mac OS, I've enabled PHP but seem to have permission problems. How do I enable subdirectories?

开发者 https://www.devze.com 2022-12-11 13:15 出处:网络
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?

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/
0

精彩评论

暂无评论...
验证码 换一张
取 消