Jump to content

PHP works in directory but subdirectory?


Recommended Posts

Hello;

 

Here are the facts:

  • I'm using PHP 5.1.6 and Apache/2.2.6
  • I have both Apache and PHP working.
  • This document is visible from a remote browser: /var/www/html/index.html
  • This document is visible from a remote browser: /var/www/html/test.php
  • This document is visible from a remote browser: /var/www/html/testy/index.html
  • This document is NOT visible from a remote browser: /var/www/html/testy/test.php
  • I receive a "403 Forbidden" error
  • The Apache error log displays "(13)Permission denied"

 

So, test.php works in the document root directory but not a subdirectory. Changing permissions to 777 makes no difference. Changing the owner from root to apache makes no difference.

 

Does anyone know why a php document is visible from the document root directory and not one of it's subdirectories? (Thanks!)

Link to comment
Share on other sites

  • 3 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.