?
avatar stAn47
stAn47
7 Nov 2014

It seems that JFolder improperly parses open_basedir and prevents creation of folder. My open_basedir is set within defines.php file as this:

ini_set('open_basedir', dirname(FILE).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.':'.dirname(FILE).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'vm2onj25'.DIRECTORY_SEPARATOR);

my paths (as seen from php):
/web/vm2/purity (is the joomla root)

i want to enable openbasedir to:
/web/vm2/*
and
/web/vm2onj25/*

the real linux paths as seen by apache document root
/srv/www/domain.com/web/vm2/
php's chroot is set to:
/srv/www/domain.com

tested on php5.6 + xdebug (but the same behaviour should be on all php versions)
Joomla version 3.3.6

best regards, stan

Steps to reproduce the issue

Expected result

Actual result

System information (as much as possible)

Additional comments

avatar stAn47 stAn47 - open - 7 Nov 2014
avatar ghost
ghost - comment - 10 Nov 2014

[Deleted, because I thought constant FILE is wrong, but underlines are removed here while posting from correct constant with underlines]

avatar stAn47
stAn47 - comment - 13 Nov 2014

just to be more exact, the directory which i was trying to be created is in

JFolder::create('/web/vm2/new_dir');

whereas the open base dir is set as above (within defines.php)

and joomla root is located at /web/vm2/purity

but a few files are symlink-ed from /web/vm2onj25

best regards, stan

avatar vdespa vdespa - change - 13 Nov 2014
Category Libraries
avatar brianteeman brianteeman - change - 3 Jan 2015
Labels Added: ?
avatar roland-d
roland-d - comment - 5 Sep 2015

Hello @stAn47,

Thank you for your contribution.

The last comment here was on 13 November 2014. So the question is, Is this issue/pull request still valid?
If no reply is received within 4 weeks we will close this issue.

Thanks for understanding!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5012.

avatar brianteeman brianteeman - change - 12 Nov 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-11-12 13:12:22
Closed_By brianteeman
avatar brianteeman brianteeman - close - 12 Nov 2015
avatar brianteeman brianteeman - close - 12 Nov 2015
avatar brianteeman
brianteeman - comment - 12 Nov 2015

Closed


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5012.

Add a Comment

Login with GitHub to post a comment