php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25169 Why do I get a "Forbidden/You don't have permission to access / on this server"
Submitted: 2003-08-20 03:44 UTC Modified: 2003-08-20 03:50 UTC
From: anjp2003 at indiatimes dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.3.1 OS: Linux
Private report: No CVE-ID: None
 [2003-08-20 03:44 UTC] anjp2003 at indiatimes dot com
Description:
------------
Why do I get a "Forbidden/You don't have permission to access / on this server" message whenever I try to open a uploaded file(access my server) ?

Sir, I want to know about the user behind the (PHP) net.

Actually we are not giving executing permissions to "other" users after uploading a file. and we are adding "Apache" to the existing users of a  login created. And Apache has all the "read- write-execute" permissions . But we are not even able to read the file when we don't give "executing" permissions to "other" users.


Reproduce code:
---------------
NOTE: DADE-I can be any login name.

sudo -u root /bin/chmod 710 /home/DADE-I
sudo -u root /bin/chmod 710 /home/DADE-I/public_html
sudo -u root /bin/chmod 710 /home/DADE-I/public_html/uploads/source
sudo -u root /bin/chmod 710 /home/DADE-I/public_html/uploads
sudo -u root /bin/chmod 710 /home/DADE-I/public_html/uploads/reports
sudo -u root /bin/chmod 710 /home/DADE-I/public_html/uploads/presentations
sudo -u root /bin/chmod 710 /home/DADE-I/public_html/uploads/references
sudo -u root /bin/chmod 710 /home/DADE-I/public_html/uploads/misc


Expected result:
----------------
we shud be able to read the files....we should have access to the files...



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-20 03:50 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 20:01:29 2024 UTC