FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Failure in stage 1
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Failure in stage 1 [message #11281] Wed, 25 June 2003 20:28 Go to next message
joshmccormack is currently offline  joshmccormack   United States
Messages: 17
Registered: June 2003
Karma: 0
Junior Member
I downloaded and unpacked the script, made a directory called forum and chmodded it 777. Put the install.php script there, and browsed to it.

My server has safe mode enabled, if that's relevant.

When I pwd the forum directory I get this:
/home/travelersdiary/www/forum

this is what I'm getting in the form fields:
Server Root: /www/travelersdiary/forum/
Forum Data Root: /home2/www/travelersdiary/forum/
Forum WWW Root: http://www.travelersdiary.comrsdiary/forum/

Even when I change these (including the really weird Forum WWW Root), the action in the script points to
action="rsdiary/forum/install.php?261833389"
which isn't going to work.

and this obviously takes me to a non existant page. Any ideas?

Josh
Re: Failure in stage 1 [message #11291 is a reply to message #11281] Thu, 26 June 2003 01:13 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The URL of install.php is relative to the current directory, if you view the HTML source you'll see that action="install.php?random_string"

FUDforum Core Developer
Re: Failure in stage 1 [message #11310 is a reply to message #11281] Thu, 26 June 2003 13:42 Go to previous messageGo to next message
joshmccormack is currently offline  joshmccormack   United States
Messages: 17
Registered: June 2003
Karma: 0
Junior Member
no, in the HTML the action is:

<form name="install" action="rsdiary/forum/install.php?453758619" method="post">

Re: Failure in stage 1 [message #11311 is a reply to message #11310] Thu, 26 June 2003 13:48 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Try the following script:
[php]
<?php
echo basename(__FILE__);
?>
[/php


FUDforum Core Developer
Re: Failure in stage 1 [message #11313 is a reply to message #11310] Thu, 26 June 2003 14:05 Go to previous messageGo to next message
joshmccormack is currently offline  joshmccormack   United States
Messages: 17
Registered: June 2003
Karma: 0
Junior Member
I ran it from /home2/travelersdiary/www/forum/test.php and got
test.php

ahhhh....

so I changed the line in install.php to
<form name="install" action="<?php echo basename(__FILE__).'?'.rand(); ?>" method="post">

and I'm onto stage 2

Josh

[Updated on: Thu, 26 June 2003 14:49]

Report message to a moderator

Re: Failure in stage 1 [message #11498 is a reply to message #11313] Wed, 02 July 2003 14:55 Go to previous message
joshmccormack is currently offline  joshmccormack   United States
Messages: 17
Registered: June 2003
Karma: 0
Junior Member
on the latest download of 2.5 (FUDforum2_20030626.tar.gz) I changed these lines in install.php to get rid of errors.

789 # if (($d = dirname($_SERVER['SCRIPT_NAME']))) {
790 if (($d = dirname(basename(__FILE__)))) {
791 # $WWW_ROOT .= dirname($_SERVER['SCRIPT_NAME']);
792 $WWW_ROOT .= dirname(basename(__FILE__));
793 if ($d != '/') {
794 $WWW_ROOT .= '/';
795 }
796 }
797 # $SERVER_DATA_ROOT = realpath(str_replace(dirname($_SERVER['SCRIPT_NAME']) . '/', '', $SERVER_ROOT) . '/../') . '/FUDforum/';
798 $SERVER_DATA_ROOT = realpath(str_replace(dirname(basename(__FILE__)) . '/', '', $SERVER_ROOT) . '/../') . '/FUDforum/';
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Fail to install fud 2.5.0
Next Topic: Well another intalling trouble
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 07 07:21:50 GMT 2024

Total time taken to generate the page: 0.02522 seconds