[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


403 error on Apache Server Suse 11.0 and PHP

Posted on 2009-02-17
Medium Priority
Last Modified: 2012-05-06
I am running PHP 5.x that is running successfully. However, when I create another directory i get the message stated below.
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403
Tue Feb 17 14:51:50 2009
Apache/2.2.8 (Linux/SUSE)

I have allowed directoy access to httpd.conf file without success.. Does members Expert Exchange have any suggestions?
Question by:hreyestech
LVL 27

Expert Comment

ID: 23666949
> You don't have permission to access the requested object. It is either read-protected or not readable by the server.

1) Check that Unix rights are OK:
ls -ald /path/to/directory
it should have 'r' and 'x' permissions for everyone

2) Check that you have enabled 'auto-indexing':
create a file: /path/to/directory/.htaccess :
Options +Indexes


Accepted Solution

BarsMonster earned 1500 total points
ID: 23666978
chmod 777 name_of_your directory
If it does not work, you need to chown this directory to the user running apache.

Then you need to read about UNIX permissions.
LVL 27

Expert Comment

ID: 23668213
The error_log should tell you if this is a configuration or a file permission issue.

Author Closing Comment

ID: 31548091
Thank you. Changing permissions on the directory allowed me to see the index.html file. I can browse the site now.

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month20 days, 2 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question