runester Posted October 25, 2007 Share Posted October 25, 2007 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!) Quote Link to comment https://forums.phpfreaks.com/topic/74802-php-works-in-directory-but-subdirectory/ Share on other sites More sharing options...
PHP Monkeh Posted February 19, 2008 Share Posted February 19, 2008 I did a quick google search and came up with this thread: http://ubuntuforums.org/showthread.php?t=45069 The last post might be what you're looking for (if you're on Linux). Quote Link to comment https://forums.phpfreaks.com/topic/74802-php-works-in-directory-but-subdirectory/#findComment-470376 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.