SOLVED - JFolder::create: Path not in open_basedir paths

Need help with the Administration of your Joomla! 1.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Jim the Chin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 230
Joined: Mon Apr 10, 2006 12:15 pm
Location: Cromer, Norfolk, UK

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by Jim the Chin » Mon Jun 02, 2008 9:28 pm

Jim the Chin wrote:
I sent you PM
Well I would if I could get beyond the wheel of D!
PM me your email address and I'll send you a zip ... is that okay or is it breaking some rule?
Signature rules http://forum.joomla.org/viewtopic.php?f=8&t=65
Only exact urls allowed

Jooming
Joomla! Intern
Joomla! Intern
Posts: 91
Joined: Wed Apr 02, 2008 4:23 am

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by Jooming » Mon Jun 02, 2008 9:58 pm

Jim,

Did you get my PM?
Jooming (Bill) :)

Jim the Chin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 230
Joined: Mon Apr 10, 2006 12:15 pm
Location: Cromer, Norfolk, UK

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by Jim the Chin » Tue Jun 03, 2008 4:03 am

Yep. And replied
Signature rules http://forum.joomla.org/viewtopic.php?f=8&t=65
Only exact urls allowed

User avatar
Smartie
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 115
Joined: Tue May 16, 2006 5:55 pm
Location: Nederland

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by Smartie » Tue Jun 03, 2008 7:15 pm

I solved this problem at my webhosting by asking my hoster to turn off safe modes.
Another joomler said in a reply ftp layer off and safe modes off would be trouble.
I had some trouble with my ftp layer so I did it the other way.

Joomla is working for me now.
good luck to you guys!

User avatar
3ric
Joomla! Intern
Joomla! Intern
Posts: 57
Joined: Thu Sep 20, 2007 4:48 pm

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by 3ric » Wed Jun 11, 2008 2:34 pm

I was having this exact same error as well. I was able to resolve it by just extracting the template directly to the site's template folder. Then I went into the template manager in the cpanel an it was there!!! :)


Hope this helps someone else. :pop
I think I chose the wrong line of work. :(

Jooming
Joomla! Intern
Joomla! Intern
Posts: 91
Joined: Wed Apr 02, 2008 4:23 am

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by Jooming » Wed Jun 11, 2008 7:21 pm

Glad to hear you guys found solutions that worked for you!

My solution was to uninstall 1.5.2 and do a clean install of 1.5.1. That worked great and now everything is the way it should have been from the beginning!

Thanks Jim for all of your help! :D

Bill
Jooming (Bill) :)

Heilong
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Sun Jul 13, 2008 10:03 am

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by Heilong » Thu Aug 28, 2008 8:42 am

Hi,
I'm facing the same problem mentionned before, I modified the FTP informations, modified the log and tmp path using a text editor and upload via FTP. Nothing is working, I can't install any components, nor plugins nothing.
I'm using version 1.5.6 and here is the configuration I have :

Code: Select all

$log_path : '/www/mydomain.com/eng/logs'
$tmp_path : '/www/mydomain.com/eng/tmp' 

Open basedir:  ../.;d:\www\php\htdocs\tmp 
i don't know what to change to make it work, I tried many things already without success.

Thanks

neon88
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Sat Aug 02, 2008 7:30 pm

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by neon88 » Fri Feb 27, 2009 10:59 pm

Hi i have a problem with installation any component
When i try install i see this error

JFolder::create: Path not in open_basedir paths
Unable to create destination

my „open_basedir”: '.:/proc/uptime:/tmp:/home:/usr/local/lib/php:/usr/home:/usr/local/bin/'
safe mode: off

my site is installed in: home/blueh18/public_html/

x_maras
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Thu Mar 19, 2009 9:53 am
Contact:

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by x_maras » Thu Mar 19, 2009 10:00 am

I ve added the line in the folder.php

but still when I m trying to upload a template I get this:
JFolder::create: Path not in open_basedir paths
Unable to create destination
I enabled the ftp layer and now I get this:
JFTP::store: Bad response
Warning! Failed to move file.
JFTP::mkdir: Bad response
JFTP::chmod: Bad response
Unable to create destination
Any help?

x_maras
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Thu Mar 19, 2009 9:53 am
Contact:

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by x_maras » Thu Mar 19, 2009 10:28 am

I did the same with 3ric and joomla found it.

Now when I m trying to manage the template

JFTP::write: Bad response
Operation Failed!: failed to open file public_html/joomla/templates/js_jamba/params.ini for writing.

The parameter file /templates/js_jamba/params.ini is writable!

Hausauer
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Apr 06, 2009 1:28 pm
Contact:

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by Hausauer » Mon Apr 06, 2009 1:35 pm

Solving the problem:
JFolder::create: Path not in open_basedir paths
Unable to create destination


in the directory: /libraries/joomla/filesystem/ a file folder.php
find the line and disable it: $obd = ini_get('open_basedir');

mcpilot25
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sat Dec 27, 2008 12:57 pm

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by mcpilot25 » Thu Apr 09, 2009 2:14 pm

Hausauer wrote:Solving the problem:
JFolder::create: Path not in open_basedir paths
Unable to create destination


in the directory: /libraries/joomla/filesystem/ a file folder.php
find the line and disable it: $obd = ini_get('open_basedir');
WORKS like a charm. Thank you. ;D

starfruit
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Wed Nov 12, 2008 1:34 pm

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by starfruit » Thu May 14, 2009 4:39 pm

sory how to make disable?
delete or what
sorry newbei

i still have problem with that
JFolder::create: Could not create directory
Warning! Failed to move file.
now i frustation
i do all the way still cant install any componen
PLEASE

nguyen van thi
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Jul 09, 2009 4:12 am

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by nguyen van thi » Thu Jul 09, 2009 4:20 am

Great.
My site work well
My problem is:
JFolder::Create:: Path not in open_basedir paths
Unable to create destination

when i install everything.
So i done:
open the file folder.php from mydomain/libraries/joomla/filesystem/folder.php
then find the line $obd = ini_get('open_basedir');
and delete it
now i do great

have lucky. guys

my email: [email protected]

User avatar
Presto-X
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 241
Joined: Fri Apr 06, 2007 12:23 am
Location: Boise, ID
Contact:

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by Presto-X » Thu Jul 30, 2009 5:38 pm

I had the same problem on a testing server this topic fixed my problem.
Hausauer wrote:Solving the problem:
JFolder::create: Path not in open_basedir paths
Unable to create destination


in the directory: /libraries/joomla/filesystem/ a file folder.php
find the line and disable it: $obd = ini_get('open_basedir');
Find the following line

Code: Select all

$obd = ini_get('open_basedir'); 
And then comment it out like this

Code: Select all

//$obd = ini_get('open_basedir');     
I hope it helps others...

scriptlover
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sun Mar 08, 2009 6:08 pm

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by scriptlover » Sun Dec 20, 2009 6:13 pm

Presto-X
nice replay
thanx for your good help

apaton
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Feb 21, 2010 12:20 am

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by apaton » Sun Feb 21, 2010 2:52 am

Thank you - that worked! I had been pulling my hair out for a few hours trying to get a module to install on a hosted site.

Anduccy
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Oct 29, 2007 6:51 pm

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by Anduccy » Fri Feb 26, 2010 11:59 am

Hi i have a problem with installation any component
When i try install i see this error

JFolder::create: Path not in open_basedir paths
Unable to create destination

my „open_basedir”: '.:/proc/uptime:/tmp:/home:/usr/local/lib/php:/usr/home:/usr/local/bin/'
safe mode: off

my site is installed in: home/blueh18/public_html/
Faced today similar problem, and the solution was too easy to detect!
In administration panel at Global Configuration -> Server -> Server Settings -> Path to Temp-folder set correct path to temp folder.
In my case was missing slash "/" at the beginnig of path, e.g. the path was something like this: home/somefolder/someotherfolder/tmp but changed to this: /home/somefolder/someotherfolder/tmp

xtrememediaworx
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Tue Aug 12, 2008 5:38 am

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by xtrememediaworx » Thu Mar 11, 2010 5:37 am

I am having the same problem guys.............. I have tried many methods, its just the Tmp path that i cant get it right, and am not sure what it actually is?

User avatar
levwii
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sat Feb 17, 2007 11:05 am

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by levwii » Sat Apr 24, 2010 3:51 pm

1st let me laugh! :)
.. guys, i was doing all the developing stuffs in mi local server... i just forgot to update the 'log' and 'temp' paths in the configuration.php file... after i uploaded the whole site to the host server!..

.. i was getting the same error
''JFolder::create: Path not in open_basedir paths
Unable to create destination"

.. i just wondered whether it will be the same if i make a new site/sub-domain at the host thinking that it is the host'rs problem!lol.. so i just installed a new joomla! on a sub-domain... and i tried to install components and stuffs.. cool heYY.. it worked!

.. i just cross-checked the configuration screen(global configuration) against the main site's!.. there i found the culprit!!

.. so heYY./. this has to be relating to the configuration.. path!!!.. make sure that u get the correct path info!!... use a FTP client.. u will get it.. try combination.. i'm sure this is the thing causing problems and nothing else as most of u guys are thinking.. and changing codes in the original Joomla..i don't think its a cool idea.,. as it might cause trouble later(may be!)!!..

.. well.. if u cannot make it work.. try a new joomla install in a sub-domain(any test domain under the same host!) .. and cross-check the 'Global Configuration'.. settings.. check mainly the 'temp' folder path and also the 'log' path!..
tc'' i wasted almost 4 hrs.. forgetting that i just didn't check the Configuration.. paths!.. sad!.. simple... so silly! :)
<3<3<3 --- Don't take them if you don't like them! If u want me to stop kidding, upgrade to Levwii's paid version. Just after you upgrade, the kidding script might be stopped. Yeah! There r still a few more bugs to be solved-

User avatar
tromp
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Aug 25, 2005 8:16 am
Location: Netherlands
Contact:

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by tromp » Wed Jun 09, 2010 6:11 am

Hausauer wrote:Solving the problem:
JFolder::create: Path not in open_basedir paths
Unable to create destination


in the directory: /libraries/joomla/filesystem/ a file folder.php
find the line and disable it: $obd = ini_get('open_basedir');
You can also change this line:

/www/libraries/joomla/filesystem/folder.php line 197:

if ($obd != null)
to:
if ($obd != null && false)

bukavu
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Tue Oct 09, 2007 4:56 pm
Location: London
Contact:

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by bukavu » Thu Aug 12, 2010 3:52 pm

M4rc0 wrote:It works!!!

thank you!

now i can finally work :D

It was the ftp layer, i entered the settings in the global configuration and it worked well
(actually i didn't know ftp was necessary)

So far so good. :pop
Just to confirm that this solve my issue which was the same as others here

Globa configuration

Server

ftp Settings

Saved
My life is a learning process...
http://www.bukavuonline.com

bukavu
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Tue Oct 09, 2007 4:56 pm
Location: London
Contact:

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by bukavu » Fri Aug 13, 2010 2:26 pm

borderless wrote:Uppon trying to install new modules or extensions i was always presented with following error:
  • JFolder::create: Path not in open_basedir paths
    Could not create directory ...
after doing some research i found out, that the problem was, indeed, caused by the open_basedir php-setting (how obvous, you say.. :))
if you also encounter this error, do the following:

Check:
  1. Click on the Menu Help->System Info
  2. Click on the second tab, named PHP Settings
  3. Check the line with the Setting "Open Basedir" (usually the second line from top)
    if your setting is Virtual_Document_Root, you might want to try the following, which solved the issue for me
Patch:
  1. Go (with any ftp program) to your Joomla directory and change to the directory libraries->joomla->filesystem
  2. download the file folder.php to your computer (dont forget to create a backup copy at this point, just in case)
  3. open the local copy of the folder.php file with a texteditor and find the line number 203
  4. insert following line of code here (after the foearch and bevore the JPath::Clean statements)

    Code: Select all

     if ($test=='VIRTUAL_DOCUMENT_ROOT') { $test = $_SERVER['DOCUMENT_ROOT']; } // MOD HERE!!
  5. save the changes and upload the file again (overwrite the old one)
  6. done
What does the patch do?
Some webspace hosts have the open_basedir setting set to the placeholder (variable) Virtual_Document_Root, which means, every user can only access his/her own webspace. Joomla does not handle this kind of open_basedir variable, so it assumes that you can only access the directory named Virtual_Document_Root (which does not exist) and prompts you with an error.
Now you just inserted a line of code, which checks for this open_basedir variable and replaces it with your real document root path, so joomla can compare this.


hope this works for you, good luck and have fun ;D
This is how I solved the same problem, I don't know if it's safe to do so:

Find this file in your joomla installation: /Joomla_root/libraries/joomla/filesystem/folder.php

Find the following line:

$obd = ini_get('open_basedir');


And comment it out like this:

//$obd = ini_get('open_basedir');
My life is a learning process...
http://www.bukavuonline.com

m_rahman
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Sep 08, 2009 3:24 am
Location: Egypt

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by m_rahman » Sun Aug 15, 2010 8:47 am

Thanks for sharing the solution.

It doesn't work with me either, and I discovered a new reason for this error and I'd like to share it too.

Open /configuration.php and make sure that $log_path and $tmp_path contain a correct path to the /logs and /tmp directories

The easiest way is by adding

Code: Select all

echo dirname(__FILE__); 
die;
at the top of this file at line 2, open any page in joomla in browser, you will see just a small text. Copy that path and set

Code: Select all

 $log_path  = {this path}/log
and

Code: Select all

 $tmp_path = {this path}/tmp
and undo your changes at line 2

WAN_GHOST
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sat Dec 12, 2009 8:18 am

JFolder::create: Path not in open_basedir paths Warning! Fai

Post by WAN_GHOST » Mon Aug 30, 2010 4:45 am

I also got the same problem....have try all the solution above..include set the ftp in cofiguration file....stil cannot work~~~
pls help me someone....got HEADACHE with this problem... :'( :-\ :-\ :( :-[

m_rahman
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Sep 08, 2009 3:24 am
Location: Egypt

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by m_rahman » Mon Aug 30, 2010 6:57 pm

What does your configuration.php file has for $tmp_path and $log_path?

building252
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sat Feb 06, 2010 5:34 am

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by building252 » Wed Sep 22, 2010 9:32 pm

This has been frustrating me all day....my host just started using the open_base_dir and it killed my joomla install capabilities - well almost :)

I decided to take a different approach. So, far it's working. I used the "Install from Directory" method in Joomla and it works great for me.

1. Double check your paths in the config file as mentioned above, that could def cause an issue.
2. Unzip the module and FTP to your tmp folder. Make sure there are no other files in the tmp folder, just the ones that were in the module/plugins folder.
3. Go back to Joomla's admin and click install - That's it

It's a bit more of a pain...but it works :)

NormanI
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Nov 29, 2010 9:30 pm

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by NormanI » Mon Nov 29, 2010 10:07 pm

Hi guys..

well .. i am a windows user and i dont have ftp layer ..

Basically what im trying to say is that im new in joomla and web things.. im learning..
Im having this problem, a read all the topic already and try many things but i thing im not reading well or i cant do it.

Can you help me out step by step .. like baby!

i will really appreciate!

Thanks in advance!

NormanI
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Nov 29, 2010 9:30 pm

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by NormanI » Mon Nov 29, 2010 10:09 pm

building252 wrote:This has been frustrating me all day....my host just started using the open_base_dir and it killed my joomla install capabilities - well almost :)

I decided to take a different approach. So, far it's working. I used the "Install from Directory" method in Joomla and it works great for me.

1. Double check your paths in the config file as mentioned above, that could def cause an issue.
2. Unzip the module and FTP to your tmp folder. Make sure there are no other files in the tmp folder, just the ones that were in the module/plugins folder.
3. Go back to Joomla's admin and click install - That's it

It's a bit more of a pain...but it works :)
Ill try but it is a doble work, dont you thinks so ?

becky-atlanta
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Mon Nov 02, 2009 2:57 am

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by becky-atlanta » Thu Jan 06, 2011 2:05 am

Hausauer wrote:Solving the problem:
JFolder::create: Path not in open_basedir paths
Unable to create destination


in the directory: /libraries/joomla/filesystem/ a file folder.php
find the line and disable it: $obd = ini_get('open_basedir');
Thank you very much! That's the only thing that worked for my problem. I appreciate your advice.


Locked

Return to “Administration 1.5”