Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Re: [Alex] "File is in wrong directory"

Quote Reply
Re: [Alex] "File is in wrong directory" In reply to
If anyone stumbles across this post or is having similar problems in the future, I finally figured out a solution to the issue, though I'm not sure how universal it might be.

This from the PHP guru at my hosting company:

"PHP is sometimes completely idiotic. It sometimes throws open_basedir errors (ahem) erroneously. Bugs have been filed, nothing comes of it. I do not have the highest opinion of PHP."

So there you have it. Nothing he was able to do, really.

HOWEVER... The server I'm on happens also to provide the option of running PHP scripts as CGI's. I don't know how common of a feature that is, or if there is any kind of standard implementation. But in my case it was as simple as adding a .htaccess file to my links cgi-bin directory with the line:

AddType php-cgi .php

This basically tells Apache to run all php scripts in that directory (of which there is only one - page.php) as cgi's, outside of Apache. The open_basedir settings which were causing such headaches are no longer needed, since the script has my user permissions, not Apache's permissions.

Anyway, so far so good - this appears to have solved the problem completely.

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund
Subject Author Views Date
Thread "File is in wrong directory" hennagaijin 8948 Nov 18, 2002, 2:00 PM
Thread Re: [hennagaijin] "File is in wrong directory"
brewt 8771 Nov 18, 2002, 2:03 PM
Post Re: [brewt] "File is in wrong directory"
hennagaijin 8760 Nov 18, 2002, 2:05 PM
Thread Re: [brewt] "File is in wrong directory"
hennagaijin 8725 Nov 18, 2002, 2:14 PM
Thread Re: [hennagaijin] "File is in wrong directory"
Alex 8735 Nov 18, 2002, 4:41 PM
Thread Re: [Alex] "File is in wrong directory"
hennagaijin 8735 Nov 18, 2002, 4:56 PM
Thread Re: [hennagaijin] "File is in wrong directory"
Alex 8726 Nov 18, 2002, 5:01 PM
Thread Re: [Alex] "File is in wrong directory"
hennagaijin 8711 Nov 18, 2002, 5:06 PM
Thread Re: [hennagaijin] "File is in wrong directory"
Alex 8658 Nov 18, 2002, 5:10 PM
Post Re: [Alex] "File is in wrong directory"
hennagaijin 8681 Nov 18, 2002, 6:29 PM
Thread Re: [Alex] "File is in wrong directory"
hennagaijin 8670 Nov 19, 2002, 7:36 PM
Thread Re: [hennagaijin] "File is in wrong directory"
Alex 8654 Nov 19, 2002, 8:34 PM
Post Re: [Alex] "File is in wrong directory"
hennagaijin 8641 Nov 20, 2002, 4:55 AM
Post Re: [hennagaijin] "File is in wrong directory"
Dan Kaplan 8630 Nov 22, 2002, 7:11 PM