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
https://forums.phpfreaks.com/topic/74802-php-works-in-directory-but-subdirectory/
Share on other sites

  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.