Loading...
 
Skip to main content

Architecture / Installation


prob with open_basedir resctriction


Hello Crowd;

after upgrading from 1.9 Branch CVS (of feb) to 1.9 DR4 I get error messages like these by my wiki:
>
Warning: mkdir(): open_basedir restriction in effect. File(/tmp/42) is not within the allowed path(s): (/my/hosting/path) in /my/hosting/path/www/p/lib/adodb/adodb.inc.php on line 1552

Warning: fopen(): open_basedir restriction in effect. File(/tmp/42/adodb_42392251b468944f2383ef5cb2c7c673.cache) is not within the allowed path(s): (/my/hosting/path) in /my/hosting/path/www/p/lib/adodb/adodb-csvlib.inc.php on line 298

Warning: fopen(/tmp/42/adodb_42392251b468944f2383ef5cb2c7c673.cache): failed to open stream: Operation not permitted in /my/hosting/path/www/p/lib/adodb/adodb-csvlib.inc.php on line 298
<

I understand this is because I am not owner of the machine my Tiki is running on, and it tries to access the tmp below root, which it's not allowed to do there.
➡️ I tried to alter the tiki-setup.php as suggested here, under Open BaseDir TweaksQuestion, but that alone it didn't help.

Now, before I go fiddle through the other files indicated there, I wanted to ask if that makes sense - since the files encountering trouble are of the adoDB module ..
❓ Wouldn't I have to alter the adoDB file/s that are trying to create the temporary dirs/s under /tmp?! Duh?!

If someone could home me in on what to change where to get rid of the errors that would be very nice. Thank you for your help!

Best Regards, Alex / Rosenpfad.de

Hmmmm, okay, .... editing adodb-csvlib.inc.php like this (lines 298 - 310): >
# if (!($fd = fopen($filename, 'a'))) return false;
# if $fd, LOCK_EX) && ftruncate($fd, 0 {
# $ok = fwrite( $fd, $contents );
# fclose($fd);
# chmod($filename,0644);
# }else {
# fclose($fd);
if ($debug)ADOConnection::outp( " Failed acquiring lock for $filename\n");
$ok = false;
}

# return $ok;
#}
<
sure made the errors go away ... now I'm just wondering, where this will backfire on me, since the function was considered important enuff by someone to be put in there to do something ....
😕

more regards,
alex at rosenpfad.de