[UPHPU] recursively set directories and files different permissions

Wade Preston Shearer lists at wadeshearer.com
Wed Jan 9 18:54:43 MST 2008


> My understanding is that the default permissions for directories are  
> 0755 and for files 0644, which turns on execution for directories  
> but not files. If you need to change the defaults, you use the umask:

Thanks. Yes, that makes sense now (with past experience and the tests  
I have been running). Being reminded of that, I went and ran some more  
tests and it turns out that there is something else that confuses me.  
None of the files (even the ones that I want to be executable) are  
executable. I thought that a script file (such as one containing PHP  
code) had to be executable in order to be served up. Does the  
executable permission only apply to executing things from the command  
line and not what Apache can and cannot serve?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20080109/a75fd59a/smime.bin


More information about the UPHPU mailing list