PDA

View Full Version : forum path on a vps server


Medtech
10-19-2008, 06:39 PM
I have been trying to figure this one out.

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/ftaso0/httpdocs/forums/cmps_index.php) is not within the allowed path(s): (/var/www/vhosts/ftasolutions.com/httpdocs:/tmp) in /var/www/vhosts/ftasolutions.com/httpdocs/forums/cmps_index.php on line 29
Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.

any ideas anyone?

snakes1100
10-19-2008, 07:25 PM
Unfortunately, we can not know your forum path or what you actually have in the file, you can find your path rather easy tho by looking at your php info via the admincp, that path will tell were you need to be, look in the last section/box of info toward the bottom of the php info page.

djxcee
10-20-2008, 02:35 AM
Create a new php file, add the following and upload it:
<?php

if ($_SERVER['PATH_TRANSLATED'])
{
$path = $_SERVER['PATH_TRANSLATED'];
}
else if ($_SERVER['SCRIPT_FILENAME'])
{
$path = $_SERVER['SCRIPT_FILENAME'];
}
else
{
echo 'We are sorry, but this script is unable to determine your forums path.';
exit;
}

$path = str_replace(array('\\', '//'), array('/', '/'), $path);

echo substr($path, 0, (strlen($path) - 14));

?>

Marco van Herwaarden
10-20-2008, 07:17 AM
Does the file /home/ftaso0/httpdocs/forums/cmps_index.php exist, or should it have been /var/www/vhosts/ftasolutions.com/httpdocs/forums/cmps_index.php?

Anyway you should as this at the vBAdvanced support website.