kyle
18th September 2008, 06:03 PM
TW ver 1.9.9
Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7a DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 PHP/5.2.5
29 Jan 2008
username: mre
Installation via FTP went smoothly but after renaming the install file all I now get is a tempnam() error:
Warning: tempnam() function.tempnam (http://doc.tikiwiki.org/function.tempnam): open_basedir restriction in effect. File() is not within the allowed path(s): (/home/iff:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/iff/public_html/wiki/lib/init/initlib.php on line 101
Possible Solution : I had the same issue and I solved using the hack
modifying the function tempdir() in file ./lib/init/initlib.php
from this :
/** Return system defined temporary directory.
* In Unix, this is usually /tmp
* In Windows, this is usually c:\windows\temp or c:\winnt\temp
* \static
*/
function tempdir() {
static $tempdir;
if (!$tempdir) {
$tempfile = tempnam(false,'');
$tempdir = dirname($tempfile);
@unlink($tempfile);
}
return $tempdir;
}
}
to this :
/** Return system defined temporary directory.
* In Unix, this is usually /tmp
* In Windows, this is usually c:\windows\temp or c:\winnt\temp
* \static
*/
function tempdir() {
static $tempdir;
$tempdir = '../tmp';
/* if (!$tempdir) {
$tempfile = tempnam(false,'');
$tempdir = dirname($tempfile);
@unlink($tempfile);
} */
return $tempdir;
}
}
Source (http://doc.tikiwiki.org/tiki-index.php?page=Installation+Problems&bl=n#open_basedir_tempnam_problem_)
Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7a DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 PHP/5.2.5
29 Jan 2008
username: mre
Installation via FTP went smoothly but after renaming the install file all I now get is a tempnam() error:
Warning: tempnam() function.tempnam (http://doc.tikiwiki.org/function.tempnam): open_basedir restriction in effect. File() is not within the allowed path(s): (/home/iff:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/iff/public_html/wiki/lib/init/initlib.php on line 101
Possible Solution : I had the same issue and I solved using the hack
modifying the function tempdir() in file ./lib/init/initlib.php
from this :
/** Return system defined temporary directory.
* In Unix, this is usually /tmp
* In Windows, this is usually c:\windows\temp or c:\winnt\temp
* \static
*/
function tempdir() {
static $tempdir;
if (!$tempdir) {
$tempfile = tempnam(false,'');
$tempdir = dirname($tempfile);
@unlink($tempfile);
}
return $tempdir;
}
}
to this :
/** Return system defined temporary directory.
* In Unix, this is usually /tmp
* In Windows, this is usually c:\windows\temp or c:\winnt\temp
* \static
*/
function tempdir() {
static $tempdir;
$tempdir = '../tmp';
/* if (!$tempdir) {
$tempfile = tempnam(false,'');
$tempdir = dirname($tempfile);
@unlink($tempfile);
} */
return $tempdir;
}
}
Source (http://doc.tikiwiki.org/tiki-index.php?page=Installation+Problems&bl=n#open_basedir_tempnam_problem_)