require_once(../../path/to/script.php) failed to open stream permission denied

Freeman

New Member
See an example here: http://mattpotts.com/portal/I put an \[code\]includeme.htm\[/code\] in each directory on the required path to find the point of failure. It works fine on my local machine (windows) with the same directory structure but fails on my remote (linux) server.Directory structure:\[code\]+-firefli/ drwx--x--x +-private_html/ drwx------ +-foo/ drwxr-xr-x +-bar/ drwxr-xr-x +-portal/ drwxr-wr-w +-public_html/ drwxr-wr-w +-foo/ drwxr-wr-w +-portal/ drwxr-wr-w\[/code\]The permissions confirm that it's the \[code\]private_html\[/code\] directory causing the trouble. Hopefully you can see the purpose of the directory structure, I don't know if it's a common way of doing things but it works for me. Well, until now.I've gone a very long way around asking it but my question is simply this: is there anything wrong with setting \[code\]private_html\[/code\] to be \[code\]drwxr-xr-x\[/code\]? Given that I do not want it to be accessible via the web. But the permissions shouldn't do that should they? Because it's apache making the \[code\]public_html\[/code\] directory accessible via http.
 
Back
Top