Page 1 of 1

--enable-safe-mode

Posted: Wed Feb 16, 2005 6:22 pm
by hawleyjr
Im in the process of migrating to a new server. However, the new server is setup so with: '--enable-safe-mode'

I store my database connection and my classes below the document root. however, because of this setting I'm unable to get to the files and recieve a "open_basedir restriction in effect." error.

This is a dedicated server and I have access to the root. So I can change the PHP_INI file however, I was curious to know if this is a setting I should change...?

Posted: Wed Feb 16, 2005 6:32 pm
by feyd
I don't remember if this works or not, but what about setting the include path to the outside document root path?

Posted: Wed Feb 16, 2005 6:38 pm
by hawleyjr
What do you mean by "outside document root path"?

I think thats what I'm trying to do...

My document root is:

/home/httpd/vhosts/example.com/httpdocs/

and I want to usethe following directory:

/home/httpd/vhosts/example.com/incfiles/

Posted: Wed Feb 16, 2005 6:55 pm
by feyd
"outside the document root path" is the same as "below the document root"

Add the folder with your classes and stuff to the include path.