Click to See Complete Forum and Search --> : Forbiden
eduac
06-20-2003, 09:45 PM
i have the linux suse 8.1/php 4.2.2/apache server already instaled on my computer and this is the error message when i try to run the code into the konqueror browser:
Forbiden...you dont have permission to display the page ....on this server...
dalecosp
06-21-2003, 12:44 AM
And it's different with other browsers?
Check the permissions...should be at least an 'r' in the final group of three...
-rwxrwxr--
^here...HTH,
eduac
06-21-2003, 10:06 AM
permission of what file? the file that i want to run (test.php) you mean?
stolzyboy
06-22-2003, 09:05 PM
yes permission of the file you want to run, if the last part (other) doesn't have read (r--) the browser can't read that file, and also you may want to check the permissions on the folder also, even on *nix, permissions can propogate to child directories
RobbiK
06-27-2003, 07:31 AM
Change the owner of that file to apache, chown apache:apache test.php
and make sure it has rw access to that file.
The permission can be something like:
-rw-r--r--
You can get this permission with chmod 644 test.php
When you access this page through a browser, apache reads that file...and if you make apache the owner of that file it must have read access to it. If you are the owner of that file you must make the 'others' group have read access to that file...like dalecosp suggests.
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.