|
Re: Need major help [message #4787 is a reply to message #4786] |
Wed, 07 August 2002 13:06 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Is your PHP configured with safe_mode or open_basedir restriction?
FUDforum Core Developer
|
|
|
Re: Need major help [message #4788 is a reply to message #4787] |
Wed, 07 August 2002 13:06 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You can remove the directories created by the forum by using simple php script:
<?php
rmdir("dir_name");
?>
FUDforum Core Developer
|
|
|
|
Re: Need major help [message #4790 is a reply to message #4789] |
Wed, 07 August 2002 13:16 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Is this your own server or are you virtual hosting?
Did you create the '/home/httpd/vhosts/pick42day.com/httpdocs/FUDforum/forum' directory?
Or was it created by the install process, also do you know if your open _basedir is set, if you do not you can find out using the php script below.
<?php
echo ini_get("open_basedir")."<br>\n";
?>
FUDforum Core Developer
|
|
|
|
Re: Need major help [message #4792 is a reply to message #4791] |
Wed, 07 August 2002 13:36 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Yup, so far you've done everything correctly, please let me know if your open_basedir is set and if so to what value, I'll be able to assist you better once I know this information.
FUDforum Core Developer
|
|
|
|
Re: Need major help [message #4794 is a reply to message #4793] |
Wed, 07 August 2002 14:03 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
okie, I think I see the problem, the open_basedir was specified as a relative path, which is what confused the installer.
Anyhow, here is what you need to do,
make a small php script and put the code below into it, then run it with your browser.
<?php
rmdir("/home/httpd/vhosts/pick42day.com/httpdocs/FUDforum/forum") ;
?>
This will remove the forum directory.
Then download the attached install script, decompress it and run it, I believe it should fix the problem.
FUDforum Core Developer
|
|
|
|
|
Re: Need major help [message #4797 is a reply to message #4796] |
Wed, 07 August 2002 14:16 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The attached install script IS different from the one you've downloaded initially from the download page.
Actually if you run it and tell it to install forum inside the forum/ directory it should overwrite any existing files without much difficulty.
FUDforum Core Developer
|
|
|
|
|
Re: Need major help [message #4800 is a reply to message #4799] |
Wed, 07 August 2002 15:02 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
because they are owned by the webserver, you can remove them using a php script:
<?php
function rm_dir($dir)
{
$d = opendir($dir);
readdir($d); readdir($d);
while ( $file = readdir($d) ) {
if( is_dir($file) )
rm_dir(realpath($dir));
else
unlink($dir.'/'.$file);
}
closedir($d);
rmdir($dir);
}
?>
FUDforum Core Developer
|
|
|
|
Re: Need major help [message #4802 is a reply to message #4801] |
Wed, 07 August 2002 15:22 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Yes, create the 2 directories manually, and try to install the forum using the script I've sent you. MAKE SURE that both Server Root & forum data root directories are inside 'home/httpd/vhosts/pick42day.com/httpdocs'
otherwise you will encounter problems due to safe_mode restrictions.
FUDforum Core Developer
|
|
|
|
|
Re: Need major help [message #4805 is a reply to message #4804] |
Wed, 07 August 2002 15:47 |
wast8
Messages: 11 Registered: August 2002
Karma: 0
|
Junior Member |
|
|
Hi, i'm still unable to remove the directories using your function.
Warning: SAFE MODE Restriction in effect. The script whose uid is 10281 is not allowed to access /home/httpd/vhosts/pick42day.com/httpdocs/forum/cache/file_filter_regexp owned by uid 48 in /home/httpd/vhosts/pick42day.com/httpdocs/fud.php on line 19
Warning: RmDir failed (Directory not empty) in /home/httpd/vhosts/pick42day.com/httpdocs/fud.php on line 22
[Updated on: Thu, 08 August 2002 15:44] Report message to a moderator
|
|
|