Closed GoogleCodeExporter closed 8 years ago
DirectoryIterator::__construct(/media/disk1): failed to open dir: Permission
denied
Original comment by koe1...@gmail.com
on 22 Feb 2011 at 11:32
It's not the ownership the problem. You have to be sure that files and
directory can have read/execution permission for "Others" so webserver
(www-data user) can access it.
Example:
/media/disk1 is owned by foo:foo and has 770 as permission mask. If you change
it to 775 or 777 even webserver can access it and the ownership still is
foo:foo
770 = read-write-execution for owner, read-write-execution for group, nothing
for others
775 = read-write-execution for owner, read-write-execution for group,
read-execution for others
777 = read-write-execution for owner, read-write-execution for group,
read-write-execution for others
Original comment by ximarx@gmail.com
on 22 Feb 2011 at 11:59
Original issue reported on code.google.com by
koe1...@gmail.com
on 22 Feb 2011 at 11:30