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
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
Category | ⇒ | Libraries |
Labels |
Added:
?
|
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!
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-11-12 13:12:22 |
Closed_By | ⇒ | brianteeman |
[Deleted, because I thought constant FILE is wrong, but underlines are removed here while posting from correct constant with underlines]