Install script fails after step 1 [message #31555] |
Sat, 06 May 2006 17:22  |
tstevens
 Messages: 7 Registered: May 2006 Location: Chicago
Karma: 0
|
Junior Member |
add to buddy list ignore all messages by this user
|
|
I’m trying to install fudforum for the first time.
Install.php script fails after step one- After clicking ‘next’, page pauses for a minute or two, I then get the general IE error “The page cannot be displayed... Cannot find server or DNS Error” but no useful information.
Originally I tried to install v2.7.4, but got the WWW_ROOT_CHECK error. I uncommented that line to bypass that check, then it looked like it was working or something was happening at least, but then it failed as described above.
I then tried to install version 2.7.3. This one didn’t fail the WWW_ROOT_CHCEK test, but the same failure happened.
This is being run on Windows 2003 server, php 5.1.2, iis 6.
I’ve seen mentions of making sure the install script was downloaded as binary, not ascii. How would I verify this? From the download site, I did ‘save as’ and saved to the desktop; from there I used winzip to unzip it. Was that the correct way?
I’m logging all php error messages, and getting none.
For a while I thought it might be a permissions issue, as I had to give ‘network service’ permission to read php_mysql.dll to even get to step 1, and I think I’ve set all the permissions I have to. I guess it still could be this, but I doubt it.
I’ve gone through php.ini to make sure everything is set correctly, and I think it is, but I could have missed something.
Any suggestions would be greatly appreciated.
Thanks
Tim
|
|
|
|
Re: Install script fails after step 1 [message #31557 is a reply to message #31555] |
Sat, 06 May 2006 19:07   |
tstevens
 Messages: 7 Registered: May 2006 Location: Chicago
Karma: 0
|
Junior Member |
add to buddy list ignore all messages by this user
|
|
Thanks for your quick reply.
That definitely helped, I’m a little closer but am at a different error message.
This version initially failed the www_root_check test as the previous versions did, so I did the workaround. A caveat to that- just uncommenting that line didn’t do the trick, so in addition to that I changed the line "if (fud_ini_get('allow_url_fopen'))" to "if (0)". From what I can tell, this is an equivalent workaround. Let me know if I’m mistaken.
Anyway, the current error message I’m getting is the “Archive did not pass checksum test, CORRUPT ARCHIVE” message.
I’m downloading this to my desktop (got the same result with zlib compression and without), then using winzip to extract it, then dragging it to the correct location. Is this the correct way to do it, or does winzip corrupt it somehow? Since I'm installing if from the same machine I downloaded it from, should this even be an issue?
I did some debugging, and I noticed this: In install.php, when I changed the return value for ‘decompress_archive’ to display the values md5($data) and $checksum, I saw two things of interest: 1) a value did not display at all for $checksum, and 2) each time I changed something in install.php, md5($data) was something different. This makes sense, but would this cause a problem because of the previous hack (bypassing www_root_check)?
If there’s any more information you’d need, or any additional debugging I could do, please let me know.
Thanks
|
|
|
Re: Install script fails after step 1 [message #31561 is a reply to message #31557] |
Sun, 07 May 2006 12:44   |
Ilia
 Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
add to buddy list ignore all messages by this user
|
|
I suspect what is hapening is that when you edit the file, your editor converts unix line endings to windows ones, this causes the checksum to fail.
There are two possible solutions:
1) Into the install directory put .htaccess file that says php_flag allow_url_fopen 0
2) Tell your editor to not convert line endings, most editors have such an option.
FUDforum Core Developer
|
|
|
|
|
Re: Install script fails after step 1 [message #31579 is a reply to message #31555] |
Mon, 08 May 2006 16:45   |
tstevens
 Messages: 7 Registered: May 2006 Location: Chicago
Karma: 0
|
Junior Member |
add to buddy list ignore all messages by this user
|
|
I stand corrected about .htaccess.
Correct me if I'm wrong about this, but I don't think I'm using an FTP client. I save the zip to the desktop, extract the files, and run the install file from the same windows machine I downloaded it to in the first place.
I hope I don't sound like an idiot about this, but my knowledge of FTP/compression/anything above layer 3 of the osi model is fairly limited.
|
|
|
Re: Install script fails after step 1 [message #31600 is a reply to message #31579] |
Tue, 09 May 2006 18:08   |
Ilia
 Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
add to buddy list ignore all messages by this user
|
|
The way you run the file is perfectly fine from what you describe, the issue from what I understand happens when you attempt to edit it. At which point the editor does more the intended causing the file checksum to mismatch. So the alternative is to disable allow_url_fopen PHP ini setting, if .htaccess does not do it change it temporarily inside your php.ini
FUDforum Core Developer
|
|
|
|
|
|
|
|
|
|
|
|
|