Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 22-05-2009
Member
 
Join Date: Feb 2009
Posts: 78
PHP Scripts open_basedir restriction in effect Error

hie,

I am getting the warning error - open_basedir restriction in effect while dealing with the PHP script. This error prevents me from opening files or scripts located outside the home directory with PHP, unless the folder has specifically excluded.
How do I resolve it ?
Reply With Quote
  #2  
Old 22-05-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: PHP Scripts open_basedir restriction in effect Error

The solution to open_basedir restriction problem is -

- to disable the PHP open_basedir protection altogether, or
- to exclude the protection for certain privileged user accounts, or
- to allow access to the additional directory for PHP scripts.
Reply With Quote
  #3  
Old 22-05-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: PHP Scripts open_basedir restriction in effect Error

Check your PHP configurations. I think something is seriously restricting you there due to which PHP is not allowing you to open any file which is not in a current directory.....Try setting open_basedir to none.

Are you using Apache virtual hosts? becoz....that's one of the common reasons of this error (according to a PHP 4.2 bug report).
Reply With Quote
  #4  
Old 22-05-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: PHP Scripts open_basedir restriction in effect Error

I had also received the similar warning.

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/user_name/public_html/wp-content/uploads/2006/12/picture.jpg) is not within the allowed path(s): (/home/user_name:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/user_name/public_html/wp-admin/inline-uploading.php on line 156
Reply With Quote
  #5  
Old 22-05-2009
Member
 
Join Date: Oct 2005
Posts: 2,389
Re: PHP Scripts open_basedir restriction in effect Error

Are using cPanel WebHost Manager (WHM) ??

if you are using WHM, it's very easy to disable PHP open_basedir protection or exclude certain users from the protection with WHM.

> under the Security section, go to Tweak Security
> select “Configure” link for “Php open_basedir Tweak”
> Inside it, enable or disable php open_basedir Protection, or exclude and include hosts from the protection.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "PHP Scripts open_basedir restriction in effect Error"
Thread Thread Starter Forum Replies Last Post
Unable to buy Mass Effect 3 because of language restriction in Origin Macau Pav Video Games 3 10-03-2012 04:01 AM
Windows 7 popping up user restriction error while using Microsoft Outlook Karumbu Windows Software 3 07-01-2011 04:40 AM
Webmail slow and /scripts/fixwebmail error Acolapissa Software Development 6 19-06-2010 12:33 AM
An error has occured running scripts on this page Swine Flu Technology & Internet 3 17-08-2009 01:21 PM
IE scripts error when sending Ims on Yahoo Messenger/blank email b darlene Windows Update 7 05-02-2007 03:15 AM


All times are GMT +5.5. The time now is 04:56 AM.