WinNT Install Probs [message #517] |
Fri, 15 February 2002 22:35 |
jkrische2
Messages: 32 Registered: February 2002 Location: Topeka, KS
Karma: 0
|
Member |
|
|
Hi All...
Kudos for a great looking and acting forum. Like it enough to try it!
Trying to set this thing up on an NT4/IIS4 box and getting some undefined variable errors in install.php when viewed in-browser via http. I press on an enter data anyway, but by the time I get to step 3 I'm getting a bunch of "cannot create file" errors, which I'm guessing is tied to the undefined variable problem. All of these undefined var's are path related, and I've no idea how to fix it for an NT box (could do it in any Linux in a snap, but such is not available at this client). I've set the server's doc root in php.ini to, well, the server's wwwroot folder (same folder IIS itself considers "root"), and am using full paths, not relative.
Anybody have any thoughts? Specific undefined vars in install.php are: "section", "DOCUMENT_ROOT", "WWW_ROOT" and "FORUM_WWW_ROOT".
|
|
|
Re: WinNT Install Probs [message #518 is a reply to message #517] |
Fri, 15 February 2002 22:38 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
jkrische2 wrote on Fri, 15 February 2002 5:35 PM | Hi All...
Kudos for a great looking and acting forum. Like it enough to try it!
Trying to set this thing up on an NT4/IIS4 box and getting some undefined variable errors in install.php when viewed in-browser via http. I press on an enter data anyway, but by the time I get to step 3 I'm getting a bunch of "cannot create file" errors, which I'm guessing is tied to the undefined variable problem. All of these undefined var's are path related, and I've no idea how to fix it for an NT box (could do it in any Linux in a snap, but such is not available at this client). I've set the server's doc root in php.ini to, well, the server's wwwroot folder (same folder IIS itself considers "root"), and am using full paths, not relative.
Anybody have any thoughts? Specific undefined vars in install.php are: "section", "DOCUMENT_ROOT", "WWW_ROOT" and "FORUM_WWW_ROOT".
|
Question? Which release did you try? 1.1.1? 1.1.1 is not easy to install on windows, if you are interested in a windows' install you should try the latest development release dev-20020215 also available on the download page.
FUDforum Core Developer
[Updated on: Fri, 15 February 2002 22:38] Report message to a moderator
|
|
|
|
|
Re: WinNT Install Probs [message #524 is a reply to message #522] |
Fri, 15 February 2002 23:10 |
jkrische2
Messages: 32 Registered: February 2002 Location: Topeka, KS
Karma: 0
|
Member |
|
|
read the rest of the original post - all of the undefined variables are listed, near the end.
PHP ver = 4.1.0 FUD ver = both 1.1.1 and latest devel versions MySQL ver = 3.23.39
entire installation of php/mysql is right about a month old, latest stable installers downloaded at that time.
recieving exact same undefined variable errors using both FUD 1.1.1 and latest devel release.
Exact error messages are:
Warning: Undefined variable: section in D:\Inetpub\wwwroot\forums_HOTC_com\install.php on line 138
Warning: Undefined index: DOCUMENT_ROOT in D:\Inetpub\wwwroot\forums_HOTC_com\install.php on line 404 Installation Path Step 1 of 5 Please enter the full path to the directory where the uncompressed files of the forum are located. ex. /home/forum/forum_install/
Warning: Undefined variable: INSTALL_PATH in D:\Inetpub\wwwroot\forums_HOTC_com\install.php on line 408
[install path form/table here]
Warning: Undefined variable: WWW_ROOT in D:\Inetpub\wwwroot\forums_HOTC_com\install.php on line 471
Warning: Undefined variable: FORUM_WWW_ROOT in D:\Inetpub\wwwroot\forums_HOTC_com\install.php on line 471
|
|
|
|
|
|
Re: WinNT Install Probs [message #528 is a reply to message #527] |
Fri, 15 February 2002 23:28 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I've just added error_reporting(E_ALL & ~E_NOTICE); to our forum so that should not be a problem in the future.
However, I don't think this is the problem here.
I've just pulled up an IIS 4.0 phpinfo(). And the DOCUMENT_ROOT, which apache exports to php does not seem to be there... I am looking at other alternatives right now...
P.S. jkrische2 would it be possible to see the output of phpinfo() on your system?
FUDforum Core Developer
|
|
|
Re: WinNT Install Probs [message #529 is a reply to message #517] |
Fri, 15 February 2002 23:48 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I've added a little hack to the install script to handle the missing DOCUMENT_ROOT variable. Please try the attached install.php a shot.
FUDforum Core Developer
|
|
|
|
Re: WinNT Install Probs [message #531 is a reply to message #530] |
Sat, 16 February 2002 02:54 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
When you try to re-install the forum, be sure the use the install script I've attached in the previous message.
P.S. i've looked at the phpinfo, and indeed IIS does not seem to export the DOCUMENT_ROOT variable, hopefuly the hack I've added in the attached install script will solve this.
FUDforum Core Developer
[Updated on: Sat, 16 February 2002 02:55] Report message to a moderator
|
|
|
Re: WinNT Install Probs [message #532 is a reply to message #531] |
Sat, 16 February 2002 03:01 |
jkrische2
Messages: 32 Registered: February 2002 Location: Topeka, KS
Karma: 0
|
Member |
|
|
Will do!
Already downloaded it and am remoting it up to the client's server as I type this. Should have at least some results here in about 15 minutes.
|
|
|
Re: WinNT Install Probs [message #533 is a reply to message #517] |
Sat, 16 February 2002 03:21 |
jkrische2
Messages: 32 Registered: February 2002 Location: Topeka, KS
Karma: 0
|
Member |
|
|
Hey Gang...
Thanks again! snapshot appears to be working. Am up to step 3 without a single error, lotsa new folders & files just created... ok, well, I had some bad NTFS perms, but got that solved. Getting mysql prepped now, expect a normal install at this point. Will post final outcome here and, when this FUD forum becomes publically available, the address of my copy of FUD in the list in the appropriate section of this site!
|
|
|
Re: WinNT Install Probs [message #534 is a reply to message #517] |
Sat, 16 February 2002 03:36 |
jkrische2
Messages: 32 Registered: February 2002 Location: Topeka, KS
Karma: 0
|
Member |
|
|
Oops, spoke too soon...
now getting a mysql error. This is under devel release plus your install sanpshot:
Failed to import default data (INSERT INTO fud_forum VALUES (1,1,'TestForum',NULL,'N',NULL,'Y','N','N','N','Y','N','N',NULL,'ML',0,0,0, 0,1,'N','Y','Y','Y',1024,1,'Y',NULL)) into table def_forum, SQL Reason: Column count doesn't match value count at row 1
Ok, there's a missing value or values - but which one(s)?
|
|
|
Re: WinNT Install Probs [message #535 is a reply to message #534] |
Sat, 16 February 2002 03:37 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
jkrische2 wrote on Fri, 15 February 2002 10:36 PM | Oops, spoke too soon...
now getting a mysql error. This is under devel release plus your install sanpshot:
Failed to import default data (INSERT INTO fud_forum VALUES (1,1,'TestForum',NULL,'N',NULL,'Y','N','N','N','Y','N','N',NULL,'ML',0,0,0, 0,1,'N','Y','Y','Y',1024,1,'Y',NULL)) into table def_forum, SQL Reason: Column count doesn't match value count at row 1
Ok, there's a missing value or values - but which one(s)?
|
Give me a moment, I'll prep a fix. I beleive we modified the fud_forum table structure and this query doesn't correspond anymore.
FUDforum Core Developer
|
|
|
|
Re: WinNT Install Probs [message #537 is a reply to message #536] |
Sat, 16 February 2002 03:49 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The problem is the result of a "bad" def_forum.sql file, which is located in your forum_install/install_data/sql/ directory. Replace that file with the one attached to this message and resume the install.
This should fix the query failure.
FUDforum Core Developer
|
|
|
Re: WinNT Install Probs [message #538 is a reply to message #537] |
Sat, 16 February 2002 04:39 |
jkrische2
Messages: 32 Registered: February 2002 Location: Topeka, KS
Karma: 0
|
Member |
|
|
Ok, progress! This is going nicely.
New batch of errors now. Sorry to be such a pain in the rear, but at least we're getting bugs worked out, eh? Steps 4 & 5 completed, directories reset to my usual restrictive NTFS perms, install.php moved to a non-web-accessible folder & renamed just to be safe. BUT...
on opening index.php for the first time, I get this:
Warning: Undefined index: REQUEST_URI in D:\Inetpub\wwwroot\forums_HOTC_com\include\GLOBALS.php on line 23
Warning: Undefined variable: db_str in D:\Inetpub\wwwroot\forums_HOTC_com\include\cookies.inc on line 82
Warning: Cannot add header information - headers already sent by (output started at D:\Inetpub\wwwroot\forums_HOTC_com\include\GLOBALS.php:23) in D:\Inetpub\wwwroot\forums_HOTC_com\include\cookies.inc on line 132
Warning: Cannot add header information - headers already sent by (output started at D:\Inetpub\wwwroot\forums_HOTC_com\include\GLOBALS.php:23) in D:\Inetpub\wwwroot\forums_HOTC_com\include\util.inc on line 42
Warning: Cannot add header information - headers already sent by (output started at D:\Inetpub\wwwroot\forums_HOTC_com\include\GLOBALS.php:23) in D:\Inetpub\wwwroot\forums_HOTC_com\include\util.inc on line 43
Warning: Cannot add header information - headers already sent by (output started at D:\Inetpub\wwwroot\forums_HOTC_com\include\GLOBALS.php:23) in D:\Inetpub\wwwroot\forums_HOTC_com\include\util.inc on line 44
Warning: Cannot add header information - headers already sent by (output started at D:\Inetpub\wwwroot\forums_HOTC_com\include\GLOBALS.php:23) in D:\Inetpub\wwwroot\forums_HOTC_com\include\util.inc on line 45
Then the normal forum list table & such appear. Stupid newbie php.ini problem or another bug to kill?
|
|
|
Re: WinNT Install Probs [message #539 is a reply to message #538] |
Sat, 16 February 2002 04:42 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Could you give me a url to the forum please, I want to see those errors for myself maybe gather more info.
This is our 1st IIS install, so I suspect it is likely the fault of the forum rather then your setup.
FUDforum Core Developer
|
|
|
Re: WinNT Install Probs [message #540 is a reply to message #517] |
Sat, 16 February 2002 05:13 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Well, after looking at your phpinfo once more I found the reason for this problem. You'll have to excuse me when I say that MS are fscking morons!!
IIS does not seem to have a REQUEST_URI variable or ANY other variable that contains the parameters passed via get.
I will once again need to add a hack, which will re-create the REQUEST_URI variable for people who lack it, the forum relies on that variable in a number of places...
Once, I make it, i'll post it in this thread.
FUDforum Core Developer
|
|
|
|
|
Re: WinNT Install Probs [message #544 is a reply to message #543] |
Sat, 16 February 2002 05:45 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The next step actually will require you to edit 1 line in you GLOBALS.php file found in your include directory for the forum.
Change the line which now says: if ( strstr($GLOBALS['HTTP_SERVER_VARS']['REQUEST_URI'], 'GLOBALS.php') ) {
To say: if ( strstr($GLOBALS['HTTP_SERVER_VARS']['SCRIPT_NAME'], 'GLOBALS.php') ) {
FUDforum Core Developer
|
|
|
Re: WinNT Install Probs [message #545 is a reply to message #544] |
Sat, 16 February 2002 06:17 |
jkrische2
Messages: 32 Registered: February 2002 Location: Topeka, KS
Karma: 0
|
Member |
|
|
prottoss, you're beautiful!
Just did the globals.php change and refreshed. Could add categories & forums at will using admin panel. Will test it further on Monday and report in, though I see no reason at this point that everything shouldn't be working right now, if it's setting & using cookies correctly and accessing mysql correctly, which apparently it is since I can create a new forum & all.
Thanks again!
|
|
|
|
|
|
Re: WinNT Install Probs [message #570 is a reply to message #517] |
Mon, 18 February 2002 16:37 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
There appears to be a problem with file attachments.
I've attached tried to attach a file to my message, however due to an error that file was not saved it would seem.
Could you please tell me what do you have inside your FILE_STORE variable of GLOBALS.php?
FUDforum Core Developer
|
|
|
Re: WinNT Install Probs [message #572 is a reply to message #570] |
Mon, 18 February 2002 17:03 |
jkrische2
Messages: 32 Registered: February 2002 Location: Topeka, KS
Karma: 0
|
Member |
|
|
prottoss wrote on Mon, 18 February 2002 10:37 AM | There appears to be a problem with file attachments.
I've attached tried to attach a file to my message, however due to an error that file was not saved it would seem.
Could you please tell me what do you have inside your FILE_STORE variable of GLOBALS.php?
|
Looks like there were some bad slashes in there, here is what I have now (& please retry an attachment):
$INCLUDE = "D:\Inetpub\wwwroot\forums_HOTC_com\include\"; $WWW_ROOT = "http://forums.sysop.com/"; $ERROR_PATH = "D:\Inetpub\wwwroot\forums_HOTC_com\errors\"; $MSG_STORE_DIR = "D:\Inetpub\wwwroot\forums_HOTC_com\messages\"; $TMP = "D:\Inetpub\wwwroot\forums_HOTC_com\tmp\"; $FILE_STORE = "D:\Inetpub\wwwroot\forums_HOTC_com\files\";
|
|
|
|
Re: WinNT Install Probs [message #574 is a reply to message #572] |
Mon, 18 February 2002 17:06 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
jkrische2 wrote on Mon, 18 February 2002 12:03 PM |
prottoss wrote on Mon, 18 February 2002 10:37 AM | There appears to be a problem with file attachments.
I've attached tried to attach a file to my message, however due to an error that file was not saved it would seem.
Could you please tell me what do you have inside your FILE_STORE variable of GLOBALS.php?
|
Looks like there were some bad slashes in there, here is what I have now (& please retry an attachment):
$INCLUDE = "D:\Inetpub\wwwroot\forums_HOTC_com\include\"; $WWW_ROOT = "http://forums.sysop.com/"; $ERROR_PATH = "D:\Inetpub\wwwroot\forums_HOTC_com\errors\"; $MSG_STORE_DIR = "D:\Inetpub\wwwroot\forums_HOTC_com\messages\"; $TMP = "D:\Inetpub\wwwroot\forums_HOTC_com\tmp\"; $FILE_STORE = "D:\Inetpub\wwwroot\forums_HOTC_com\files\";
|
I see the problem...
In windows when using php you MUST enter paths like this:
D:\\mypath\\fdsfa\\fsadfsadf\etc\\
Otherwise the path will not be parsed correctly
Everywhere you have \ in the path you need to change it to \\ otherwise you'll have problems. Because \ is normally an escape character, by using \\ you make it escape itself and thus use \ when it actually needs to use the path.
FUDforum Core Developer
[Updated on: Mon, 18 February 2002 17:07] Report message to a moderator
|
|
|
|
Re: WinNT Install Probs [message #576 is a reply to message #574] |
Mon, 18 February 2002 17:11 |
jkrische2
Messages: 32 Registered: February 2002 Location: Topeka, KS
Karma: 0
|
Member |
|
|
OK, slashes changed in that whole section of path-related variables, so that is now looks like this:
$INCLUDE = "D:\\Inetpub\\wwwroot\\forums_HOTC_com\\include/"; $WWW_ROOT = "http://forums.sysop.com/"; $ERROR_PATH = "D:\\Inetpub\\wwwroot\\forums_HOTC_com\\errors/"; $MSG_STORE_DIR = "D:\\Inetpub\\wwwroot\\forums_HOTC_com\\messages/"; $TMP = "D:\\Inetpub\\wwwroot\\forums_HOTC_com\\tmp/"; $FILE_STORE = "D:\\Inetpub\\wwwroot\\forums_HOTC_com\\files/";
|
|
|
|
Re: WinNT Install Probs [message #578 is a reply to message #576] |
Mon, 18 February 2002 17:12 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
jkrische2 wrote on Mon, 18 February 2002 12:11 PM | OK, slashes changed in that whole section of path-related variables, so that is now looks like this:
$INCLUDE = "D:\\Inetpub\\wwwroot\\forums_HOTC_com\\include/"; $WWW_ROOT = "http://forums.sysop.com/"; $ERROR_PATH = "D:\\Inetpub\\wwwroot\\forums_HOTC_com\\errors/"; $MSG_STORE_DIR = "D:\\Inetpub\\wwwroot\\forums_HOTC_com\\messages/"; $TMP = "D:\\Inetpub\\wwwroot\\forums_HOTC_com\\tmp/"; $FILE_STORE = "D:\\Inetpub\\wwwroot\\forums_HOTC_com\\files/";
|
This looks correct, let me try to upload a file.
FUDforum Core Developer
|
|
|
Re: WinNT Install Probs [message #579 is a reply to message #517] |
Mon, 18 February 2002 17:16 |
jkrische2
Messages: 32 Registered: February 2002 Location: Topeka, KS
Karma: 0
|
Member |
|
|
new error when trying to update the posted message "attachment test 2":
Warning: stat failed for D:Inetpubwwwrootforums_HOTC_comfiles/3.atch (errno=2 - No such file or directory) in D:\Inetpub\wwwroot\forums_HOTC_com\post.php on line 167
|
|
|
Re: WinNT Install Probs [message #580 is a reply to message #517] |
Mon, 18 February 2002 17:16 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Hrm... problem is still there, the file is not getting saved. I know this because when I go to edit the message I get the following error:
Warning: stat failed for D:Inetpubwwwrootforums_HOTC_comfiles/4.atch (errno=2 - No such file or directory) in D:\Inetpub\wwwroot\forums_HOTC_com\post.php on line 167
Could you please check if there are any files inside the: D:\\Inetpub\\wwwroot\\forums_HOTC_com\\files/ directory and if there are any could you show me the directory listing please.
FUDforum Core Developer
|
|
|
|
Re: WinNT Install Probs [message #582 is a reply to message #517] |
Mon, 18 February 2002 17:19 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Heh, I think I may have found the problem.
As a test for this problem could please you do run the following MySQL query and paste it's output here.
SELECT * FROM fud_attach;
FUDforum Core Developer
|
|
|