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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: anjp2003 at indiatimes dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 10:01:33 2025 UTC