Advertisement:

Author Topic: Issues migrating from SMF1.1 to new host  (Read 857 times)

Offline arkfor

  • Newbie
  • *
  • Posts: 7
Issues migrating from SMF1.1 to new host
« on: May 15, 2018, 10:12:04 AM »
Hi!

I'm having some problem migrating my old SMF 1.1(RC3 actually) on a Windows server, to a new Linux one (Debian 9), with the idea of then update to SMF 2.x.
I installed Lighttpd, MariaDB and PHP5.6.
Server is working for basic HTML files. Typical PHP tests like phpinfo works, so I assumed the basics are covered.
I put the forum in maintenance, and I manually dumped the database obtaining an .sql file (I read that the backup function of the forum may produce some malformed results). I then imported the file on the new MariaDB, and all seems to have being going well.
I downloaded and then uploaded all the forums files in the new server, changed&checked the files permissions (to www-data).
Then I got the repair_settings.php file, but when trying to run it, the script doesn't execute as expected but instead output part of the code starting from "function restoreAll()".

I'm attaching a screen shot of the browser window.

I though I followed the procedures and recommendations correctly, but evidently not.
What I have missed? Is there something that I can check to diagnose the problem?

Thank you in advance.
« Last Edit: May 15, 2018, 10:35:41 AM by arkfor »

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,215
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Issues migrating from SMF1.1 to new host
« Reply #1 on: May 15, 2018, 10:44:22 AM »
I would try to upgrade your SMF 1.1.1.x to the latest SMF 1.1.x first then go to SMF 2.0.

I am not sure if the repair settings tool will work with SMF 1.1. RC versions
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline arkfor

  • Newbie
  • *
  • Posts: 7
Re: Issues migrating from SMF1.1 to new host
« Reply #2 on: May 15, 2018, 12:34:06 PM »
I see.
What would be the best or most correct way to proceed with the update of the current 1.1RC3 forum?
In https://download.simplemachines.org/ I see only the upgrade to 2.0.15.

Thanks!

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 4,806
  • Gender: Male
    • i30 Owners Club

Offline arkfor

  • Newbie
  • *
  • Posts: 7
Re: Issues migrating from SMF1.1 to new host
« Reply #4 on: May 15, 2018, 12:39:36 PM »
OK, I'll apply all the updates in successions and see how it goes.

Thanks!

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 49,470
Re: Issues migrating from SMF1.1 to new host
« Reply #5 on: May 15, 2018, 12:47:26 PM »
https://custom.simplemachines.org/upgrades/

that only applies if you have SMF 1.1 or SMF 2.0 final/gold installed otherwise https://download.simplemachines.org/index.php?archive might be more helpful

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,505
  • Gender: Male
    • Kindred-999 on GitHub
Re: Issues migrating from SMF1.1 to new host
« Reply #6 on: May 15, 2018, 12:49:07 PM »
I don't think that you can actually apply upgrades in procession from an RC version. I believe that you would have to use the large upgrade to go to at least the 1.1.0 gold release (and, at that point, I'd suggest going to 1.1.21 directly)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline arkfor

  • Newbie
  • *
  • Posts: 7
Re: Issues migrating from SMF1.1 to new host
« Reply #7 on: May 15, 2018, 01:02:18 PM »
OK, thanks everyone for the suggestions. Later I'll try and report back the results!

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,942
  • 'Tis the gift to be simple (duh)
Re: Issues migrating from SMF1.1 to new host
« Reply #8 on: May 15, 2018, 04:56:53 PM »
use the large upgrade to go to at least the 1.1.0 gold release (and, at that point, I'd suggest going to 1.1.21 directly)

Yes, bad things can happen if you try to bump RC higher than gold.  I would go 1.1 RC3 -> 1.1.0 -> 1.1.21 -> 2.0.15.  If you can't get from 1.1.0 -> 1.1.21 in one jump, try something in between.

Offline arkfor

  • Newbie
  • *
  • Posts: 7
Re: Issues migrating from SMF1.1 to new host
« Reply #9 on: May 15, 2018, 09:55:13 PM »
OK, here's the situation.
On the old Windows server (the one running ver 1.1RC3), I successfully updated first to 1.1 and then to the latest 1.1.21. So now the latest version of the 1.x branch is running without issues.

So I proceeded to make a new dump of the entire smf database, and a ZIP of all the forum files.
On the new Linux server I deleted both the db and all the previous files, restored the new db dump e copied the forum files.
But again, when I run /forum/upgrade_settings.php, I get the same output as per my first message.

So, I took a look at Settings.php, and manually changed the obvious parameters (board urls, db password, directories).
With that, it's almost running. Except that when I load any page, it get downloaded as a GZ compressed file instead of rendered. I guess it must be something stupid I'm overlooking, but I tried disabling compressions both in Lighttpd and PHP, with no effect.

Almost there but not quite. Any last tips?

Thanks!


Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,505
  • Gender: Male
    • Kindred-999 on GitHub
Re: Issues migrating from SMF1.1 to new host
« Reply #10 on: May 15, 2018, 09:58:16 PM »
It actually sounds like php is not actually running
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline arkfor

  • Newbie
  • *
  • Posts: 7
Re: Issues migrating from SMF1.1 to new host
« Reply #11 on: May 15, 2018, 10:01:54 PM »
It actually sounds like php is not actually running

No, that is working. A simple info.php or version.php file run correctly.
And with Wget I'm able to get the forum index page (probably because it doesn't negotiate the compressed content, or decode it anyway), but Chrome or Edge instead download a GZipped file.

At this point is probably more a Lighttpd configuration issue, me think...

Offline arkfor

  • Newbie
  • *
  • Posts: 7
Re: Issues migrating from SMF1.1 to new host
« Reply #12 on: May 16, 2018, 08:29:05 AM »
Oh, man!
I was using "/usr/bin/php" instead "/usr/bin/php-cgi" in the lighttpd config!  :-[

Sorry for the confusion, and thanks everyone for the detailed info on the upgrade process!