Open Basedir

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jim
Forum Contributor
Posts: 238
Joined: Fri Apr 19, 2002 5:26 am
Location: Near Austin, Texas

Open Basedir

Post by Jim »

How do I turn open_basedir off in PHP.ini?

I have it set as:


; open_basedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file.
;
;open_basedir = Off

But it doesn't work... I still get an error that says it is in effect.

HOW DO I FIX THIS?!?!? *tears hair out*

Thanks all!

-Jim
Doolittle
Forum Newbie
Posts: 19
Joined: Sun May 04, 2003 11:45 pm

Post by Doolittle »

Take out the ";" right before it, thats commenting it out :wink:
User avatar
delorian
Forum Contributor
Posts: 223
Joined: Sun May 04, 2003 5:20 pm
Location: Olsztyn, Poland

Post by delorian »

Updating previous reply: set it to ON also :D
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

If open_basedir is commented out then it should be disabled. Are you sure you're editing the right php.ini? What does:

Code: Select all

<?php phpinfo(); ?>
tell you?

Mac
Post Reply