Re: file() works in Windows not on Linux
403 is an Apache (web server) error.
This indicates that you can't read from file (or directory).
execute
chmod 664 directory/file.php
chmod 775 directory
both on the directory parent to the directory where your file.php is
this should do (maybe you'll have to change the group of files too)
.
Relevant Pages
- Re: error_log
... User and group should be apache (if you have apache as the user running the ... location has to be readable for the web server. ... use chown, for change privileges use chmod, if you don't know how to use them, ... (alt.php) - Re: users personal homepage
... This means that grant "execute" permission to owner, group, world. ... And since Apache only needs to list the contents of /home/user ... chmod a+rx /home/user ... (Fedora) - Re: Restricting users to their own home directories / not letting users view other users files...?
... The web server can read all users' web files ... Once the sgid bit is set, the group membership of the files remains www no matter what user creates/touches a file. ... Note that the first bit isn't usually referred to when discussing chmod. ... My apologies for calling the sgid bit the "sticky" bit, ... (freebsd-questions) - Re: Restricting users to their own home directories / not letting users view other users files...?
... The web server can read all users' web files ... Once the sgid bit is set, the group membership of the files remains www no matter what user creates/touches a file. ... Note that the first bit isn't usually referred to when discussing chmod. ... My apologies for calling the sgid bit the "sticky" bit, ... (freebsd-questions) - Re: Cannot create a file using php on appache web server
... On a uniz web server how do I set the file permissions??? ... But since your subject says appache, my best guess is you want to know how to set file permissions on a Unix machine, that happens to run Apache web server. ... How to change permissions on a file under *nix? ... then chmod the file you want to change. ... (comp.lang.php) |
|