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

Home » FUDforum » FUDforum Installation Issues » Dumb question about the update scripts
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Dumb question about the update scripts [message #18958] Fri, 18 June 2004 17:19 Go to next message
WilliamBurns is currently offline  WilliamBurns   United States
Messages: 123
Registered: March 2004
Location: San Jose, CA
Karma: 0
Senior Member
As an inexperienced and new (and very happy) user of FUDForum, I have been nervous to see that in just under three months, my 2.6.1 release has been moved toward obsolesence by not just 2.6.2, but also by 2.6.3, and now 2.6.4. Since my 2.6.1 seems to be running along without incident, I have been reluctant to apply the updates. Now that I am feeling "way behind" my question is: Do I have to do all three of the updates in succession, or is it set up so that I can update directly from 2.6.1 to the 2.6.4 version by running just the 2.6.4 update script? Part of my anxiety is that I have never run an update script, so I don't have a sense for how dangerous it is to my existing installation. Does the update script operate in such a way that it does not destroy the old installation if it fails to complete? Finally, is there a concise set of instructions as to how to do the update somewhere?
Re: Dumb question about the update scripts [message #18965 is a reply to message #18958] Fri, 18 June 2004 22:04 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
FUDforum updates will take care of all version changes. Meaning you download the 2.6.4 upgrade script regardless of what forum version you are running (unless you got something really old like 2.3).

The upgrade will not destroy your install. To upgrade simply download the upgrade archive, extrace upgrade.php, put that file inside the forum's main directory and run it.


FUDforum Core Developer
Re: Dumb question about the update scripts [message #19016 is a reply to message #18965] Mon, 21 June 2004 21:55 Go to previous messageGo to next message
WilliamBurns is currently offline  WilliamBurns   United States
Messages: 123
Registered: March 2004
Location: San Jose, CA
Karma: 0
Senior Member
Well, I downloaded the 2.6.4 upgrade file, extracted all four contained files, read the read_me, uploaded (binary mode) the upgrade.php file, checked that the CHMOD for the main forum folder was 711, attempted to open the upgrade.php file in my MSIE 6.0 browser, and I get a diagnostic page that says the page I am looking for cannot be displayed. At the bottom of the diagnostic page it says "Cannot find server or DNS Error
Internet Explorer" Confused, I launched the Netscape 7.1 browser and repeated the attempt. On netscape, I get a little circular arrow that rotates a couple of times, then nothing (not even a diagnostic).
For what it is worth, I downloaded the zip files with zlib compression. Do I have to do a CHMOD on the upgrade.php file? Also, I presume I must manually disable the forum before running the upgrade (although, in my ignorance, I tried it both ways.)I have php 4.3.4 and am using mysql. I am also up against an 8 meg memory limit. Oh, also I am attempting to update version 2.6.1 with this 2.6.4 upgrade.
I looked in the server error log, and I found this:
FATAL: emalloc(): Unable to allocate 4068605 bytes
Could this be my trouble?

[Updated on: Mon, 21 June 2004 22:27]

Report message to a moderator

Re: Dumb question about the update scripts [message #19017 is a reply to message #19016] Mon, 21 June 2004 22:52 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
You don't need to disable the forum, it'll be done automatically. You don't need to chmod the upgrade script unless you have safe_mode or memory_limit.

FUDforum Core Developer
Re: Dumb question about the update scripts [message #19018 is a reply to message #19017] Mon, 21 June 2004 23:51 Go to previous messageGo to next message
WilliamBurns is currently offline  WilliamBurns   United States
Messages: 123
Registered: March 2004
Location: San Jose, CA
Karma: 0
Senior Member
Well,
If the upgrade script is not running, and the error log is showing
FATAL: emalloc(): Unable to allocate 4068605 bytes
then I guess my conclusion is that I do have a memory limit. What should I CHMOD the upgrade.php script to?
Re: Dumb question about the update scripts [message #19019 is a reply to message #19018] Tue, 22 June 2004 01:02 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
Increase your memory limit (temporarily).

FUDforum Core Developer
Re: Dumb question about the update scripts [message #19105 is a reply to message #19019] Thu, 24 June 2004 20:15 Go to previous messageGo to next message
WilliamBurns is currently offline  WilliamBurns   United States
Messages: 123
Registered: March 2004
Location: San Jose, CA
Karma: 0
Senior Member
Ilia,
I am working on analyzing why my 8 meg allocation is so used up that it cannot allocate 4 megs for the upgrade. Meanwhile, is there any chance that the upgrade might run in a slightly smaller memory allocation? If so, is it possible to modify an allocation command in it? Or is there a chance that the script could be broken into two or more pieces? My ISP wants me to spend several hundred additional dollars PER MONTH to upgrade to their next platform with more memory, just to do this. Grrr. Sad
Re: Dumb question about the update scripts [message #19109 is a reply to message #19105] Thu, 24 June 2004 20:56 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
You can try using using the zlib version if you were using the non-zlib version or vise versa. Last time I tried memory limit tests both installer and upgrade scripts worked fine with 8meg limit.

FUDforum Core Developer
Re: Dumb question about the update scripts [message #19110 is a reply to message #19109] Thu, 24 June 2004 20:56 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
Also, try to findout where exactly (line #) where the memory limit is being reached.

FUDforum Core Developer
Re: Dumb question about the update scripts [message #19116 is a reply to message #19109] Fri, 25 June 2004 16:51 Go to previous messageGo to next message
WilliamBurns is currently offline  WilliamBurns   United States
Messages: 123
Registered: March 2004
Location: San Jose, CA
Karma: 0
Senior Member
I tried the zlib compression version again (with Netscape 7.1), and all I got in the error log was:

FATAL: emalloc(): Unable to allocate 4068605 bytes

So I tried downloading, unzipping, uploading, and running the NON zlib compression version. On Netscape 7.1 I got:

FATAL: erealloc(): Unable to allocate 3588097 bytes

And trying the same thing with the MSIE 6, I got:

FATAL: erealloc(): Unable to allocate 3858433 bytes

I notice that the non-compressed upgrade file is 4.044 megs, while the zl compressed version is only 1.376 megs. That wouldn't mean it could run in less memory, would it?
Re: Dumb question about the update scripts [message #19117 is a reply to message #19110] Fri, 25 June 2004 16:53 Go to previous messageGo to next message
WilliamBurns is currently offline  WilliamBurns   United States
Messages: 123
Registered: March 2004
Location: San Jose, CA
Karma: 0
Senior Member
About the line number. Is there a place to look for that? The error log doesn't give it. Is there a way of running it that will display progress, or give line numbers?
Re: Dumb question about the update scripts [message #19118 is a reply to message #19117] Fri, 25 June 2004 17:40 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 out of memory message usually contains a line #. The zlib version is smaller because the archive is compressed. However, before the forum can use the archive it needs to decompress it.

Are you using PHP-CGI by any chance?


FUDforum Core Developer
Re: Dumb question about the update scripts [message #19119 is a reply to message #19118] Fri, 25 June 2004 21:49 Go to previous messageGo to next message
WilliamBurns is currently offline  WilliamBurns   United States
Messages: 123
Registered: March 2004
Location: San Jose, CA
Karma: 0
Senior Member
I don't know what PHP-CGI would be. I know I have PHP 4.3.4, and I do not see any modules that have names involving PHP-CGI. My provider also has CGI, Perl, and other things available for use.
I am having trouble getting them to respond, perhaps because of the flap over 300 to 400 servers nationwide infected with a server virus that the noon news talked about. Perhaps one of them can get me a line number. As our great governor of California once said: ... "I'll be back!"
Re: Dumb question about the update scripts [message #19128 is a reply to message #19119] Sat, 26 June 2004 21:06 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
Show me the phpinfo() from your server.

FUDforum Core Developer
Re: Dumb question about the update scripts [message #19197 is a reply to message #19128] Thu, 01 July 2004 00:37 Go to previous messageGo to next message
WilliamBurns is currently offline  WilliamBurns   United States
Messages: 123
Registered: March 2004
Location: San Jose, CA
Karma: 0
Senior Member
I tried disabling something they call a rewrite engine and its associated load module, but to no avail: same memory allocation limit and message. I have attempted to attach the php info page displayed by my browser, as requested. It wouldn't accept an html file, so I renamed it.
  • Attachment: phpinfo.txt
    (Size: 34.31KB, Downloaded 1837 times)
Re: Dumb question about the update scripts [message #19210 is a reply to message #19197] Thu, 01 July 2004 21:18 Go to previous messageGo to next message
WilliamBurns is currently offline  WilliamBurns   United States
Messages: 123
Registered: March 2004
Location: San Jose, CA
Karma: 0
Senior Member
The support people at my ISP phoned me. They "cheated for me this one time only" and raised my memory limit to see if it was in fact a memory issue. "Frank" (the support fellow) had me run the upgrade script while he watched the process memory numbers.
1. The process ran to completion, evidently successfully.
2. He says that the upgrade process alone was requiring as much as 8.7 megs at one point. He also said that my base usage was currently running about 5.5 megs, so I am in shallow water anyway. I have to hope future upgrades will run in less memory.
3. But now, when I go to run the forum, it is back to its original state. I have to figure out what I did to the header.tmpl and footer.tmpl to make it show my navigation column and my banner at the top. I can't seem to make it work. And when I go to upload these two files, my ftp program wants me to select index.tmpl, or root_index.tmpl, or (I think) help_index.tmpl. If I don't pick one, it cancels the upload. I have been picking index.tmpl, and I believe the modified header and footer are in the proper folder, but it still doesn't seem to work. Am I leaving something obvious out?
Further, I have discovered that the navigation column and banner at the top do appear when no one is logged in to the forum. However, when someone logs in, the screen shows up without either the navigation column or the banner. Something is different! Can you help me make it so the navigation column and the banner appear all the time, not just when no one is logged in?
On the one hand, the upgrade is amazing in that it seems to have run flawlessly. On the other hand, it insinuated some issues that have been hard to resolve!

[Updated on: Thu, 01 July 2004 21:33]

Report message to a moderator

Re: Dumb question about the update scripts [message #19221 is a reply to message #19210] Fri, 02 July 2004 12:56 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
Because the difference between the old & the new version is so great header/footer template were modified, generally that is not the case since I try to avoid modifying these two files. To restore the changes you need to port the changes from the old header/footer that can be found in forum's errors/.backup directory in to the new one. The other problem you've described sounds like you have 2 separate themes.

FUDforum Core Developer
Re: Dumb question about the update scripts [message #19241 is a reply to message #19221] Fri, 02 July 2004 19:18 Go to previous messageGo to next message
WilliamBurns is currently offline  WilliamBurns   United States
Messages: 123
Registered: March 2004
Location: San Jose, CA
Karma: 0
Senior Member
I do have two separate themes, but only because I was testing things with a test theme. Sometime I will either develop that theme or delete it. Doing either at present is a worry. I had already overwritten the default header and footer and forum.css.tmpl (because I had changed the background color). Then I figured out that the whole header and footer file had changed. Fortunately, I was able to get a changed file from my second theme, make the modifications, and upload. It seems to be working fine now. I am very impressed! Thank you for your patience, assistance, and for this forum where I can let off a little steam!
Re: Dumb question about the update scripts [message #19269 is a reply to message #19241] Mon, 05 July 2004 22:39 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
I don't know what PHP your ISP is using but with PHP 4.3.7 with the following extensions compiled in I was able to successfuly install & upgrade FUDforum without having to increase the default 8m memory limit.

Enabled Extensions: ctype ftp, iconv, mbstring, mhash, mysql, overload, pcntl, pcre, pdf, pgsql, posix, pspell, session, shmop, sockets, sqlite, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, zlib


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Everything went fine....then my IE fonts went bonkers
Next Topic: no administration options
Goto Forum:
  

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

Current Time: Wed Nov 27 20:16:03 GMT 2024

Total time taken to generate the page: 0.02517 seconds