PDA

View Full Version : PHP errors


iStormy
09-18-2003, 08:14 PM
I use a simple PHP template system on a web site that I just moved to a DirectAdmin server. I have a .htaccess that contains:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME}/body.php -f
RewriteRule .* /home/admin/domains/raincrazy.com/public_html/template/engine.php [L]

It checks to see if the requested file happens to be a directory with a body.php file in it, and if so, redirects to call my template script.

I get this error message in my logs when I try it:
[Thu Sep 18 20:55:48 2003] [error] [client 10.0.0.4] (13)Permission denied: access to /template/engine.php failed because search permissions are missing on a component of the path

Ideas? I'm not sure how it is losing the rest of the pathname. Open_basedir is commented out of /usr/local/lib/php.ini.

DirectAdmin Support
09-18-2003, 10:58 PM
Hello,

I'm not too sure about the missing first part of the path, but search permissions means the directory isn't executable ( i think ). So you'd need to chmod it to 755, for example.

John

iStormy
09-19-2003, 11:51 AM
Silly me, when I untarred the backup, the directories lost go+x permission. I should have seen that myself.