Trouble running bitweaver

Status
Not open for further replies.

roninkelt

New Member
Messages
5
Reaction score
0
Points
0
I'm having trouble with a new install of bitweaver. I've put it in the /www/bitweaver directory so the url to access the index should be xxx.net/bitweaver/index.php but when I do that I get the following errors:

Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/xxx:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/xxx/public_html/bitweaver/kernel/preflight_inc.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/bitweaver/kernel/preflight_inc.php:24) in /home/xxx/public_html/bitweaver/index.php on line 48

Sounds like it finds the index.php, but that PHP is looking for the wrong directory to run bitweaver. Any suggestions on what the problem is?
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
That error is it trying to open a file outside your home directory. Are your absolute paths setup correctly, ie /home/user/public_html/folder ?

Otherwise maybe find the function tempnam and post it here so we can look at what it is trying to do.

-Corey
 

roninkelt

New Member
Messages
5
Reaction score
0
Points
0
That error is it trying to open a file outside your home directory. Are your absolute paths setup correctly, ie /home/user/public_html/folder ?

Otherwise maybe find the function tempnam and post it here so we can look at what it is trying to do.

-Corey

This is the PHP code that is causing the problem: (line 24 is the one that starts :(false)) )

function getTempDir() {
static $tempdir;
if (!$tempdir) {
global $gTempDir;
if( !empty( $gTempDir ) ) {
$tempdir = $gTempDir;
} else {
if (!isWindows()) {
$tempfile = tempnam(((@ini_get('safe_mode'))
? ($_SERVER['DOCUMENT_ROOT'] . '/temp/')
: (false)), 'foo');
$tempdir = dirname($tempfile);
@unlink($tempfile);
} else {
$tempdir = getenv("TMP");
}
}
}
return $tempdir;
}

Suggestions?
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
hmm, try changing '/temp/' to '/tmp/'
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
hmm I'm not sure what file it is trying to open... can you ask the developers of the software?

-Corey
 
Status
Not open for further replies.
Top