Advertisement:

Author Topic: new server  (Read 1555 times)

Offline Jeff B

  • Full Member
  • ***
  • Posts: 405
new server
« on: December 28, 2017, 02:23:35 PM »
Well, I have kinda got to a point I need to do it again. Go to a new server. The last time was in 2010. I've reached a point where I can't upgrade to 2.0.14 because of my version of PHP.  I find that I can not upgrade my PHP due to my dated version of Debian  So,  I have a couple questions. Well, one to begin with I guess.

Am I going to have issues migrating to Debian 9 and PHP7 ?  Issues with memcache or Sphinx search?     I was hoping I can just move everything over. I have a dedicated server and my host says that my paths would be the same on the new server, but I've hoped for things before and ended up with something closer to a bucket of ice water dumped on my head. :)

Offline Jeff B

  • Full Member
  • ***
  • Posts: 405
Re: new server
« Reply #1 on: December 28, 2017, 02:42:16 PM »
WHere I think my issue may be is, I can't upgrade to 2.0.14  on my current server,  and the new server, 2.0.13 would not be supported

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,493
  • Gender: Male
    • Kindred-999 on GitHub
Re: new server
« Reply #2 on: December 28, 2017, 02:46:34 PM »
Backup database and files

Extract to new site, files and database
Overlay 2.0.15 forum files (large upgrade package)
Run repair_settings.php and set to your new configuration
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 Jeff B

  • Full Member
  • ***
  • Posts: 405
Re: new server
« Reply #3 on: December 28, 2017, 03:07:35 PM »
I'll give her a run once the box is set up. Thank you!  to be clear, "Overlay 2.0.15 forum files (large upgrade package)" means to extract and overwrite the old files?

Also, once I have tested the new server, and am ready to do the final database move, I plan on shutting down my forum, backing up the database and rplacing the test one to get all the current posts.  Is there going to be any issues exporting a database and restoring on the other server when it had been running on 2.0.13 and is now going to one running 2.015?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,493
  • Gender: Male
    • Kindred-999 on GitHub
Re: new server
« Reply #4 on: December 28, 2017, 04:48:04 PM »
Yes, overwrite

And no problem using a 2.0.13 database...   the only problem you will have is that every time you copy the database over yoy will gave to rerun repair_settings.php
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 Jeff B

  • Full Member
  • ***
  • Posts: 405
Re: new server
« Reply #5 on: December 28, 2017, 05:10:41 PM »
Awesome  can I keep this topic open while I go through this process or should I mark it solved?  I'd be willing to bet I goof sumpthin up! ;)

Offline Aleksi "Lex" Kilpinen

  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 17,088
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • aleksi-kilpinen on LinkedIn
Re: new server
« Reply #6 on: December 29, 2017, 12:07:55 AM »
You can keep it open, just come back to tell us how it went :)

How do I move my SMF forum to a different host?
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Jeff B

  • Full Member
  • ***
  • Posts: 405
Re: new server
« Reply #7 on: December 29, 2017, 08:26:13 AM »
Will do!  Thank you.

Offline Jeff B

  • Full Member
  • ***
  • Posts: 405
Re: new server
« Reply #8 on: January 08, 2018, 01:25:46 PM »
Still waiting for my new server to be racked up.   I was reading on the downloads page for the large upgrade.  It says it will wipe out all of my modifications??

Offline Aleksi "Lex" Kilpinen

  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 17,088
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • aleksi-kilpinen on LinkedIn
Re: new server
« Reply #9 on: January 08, 2018, 02:05:08 PM »
Yes, patches done through the package manager don't touch modifications, but large upgrade effectively removes all modified code.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 49,448
Re: new server
« Reply #10 on: January 08, 2018, 02:07:53 PM »
Yes, patches done through the package manager don't touch modifications, but large upgrade effectively removes all modified code.

it does not remove hooks, they need to be done manually.

Offline Jeff B

  • Full Member
  • ***
  • Posts: 405
Re: new server
« Reply #11 on: January 08, 2018, 02:12:16 PM »
So can I upgrade manually somehow?   I really don't want to lose what we have. Our forum has been up since the days of Yabb. it is in its 18th year.

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 49,448
Re: new server
« Reply #12 on: January 08, 2018, 02:25:49 PM »
You can keep it open, just come back to tell us how it went :)

How do I move my SMF forum to a different host?

all you need to do is in that link, then using the package manager to the 2.0.15 version.

Offline CoreISP

  • Server Admin
  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,356
  • Gender: Male
  • CoreISP.net
    • liroyvh on LinkedIn
    • @liroyvh on Twitter
    • CoreISP Corporation :: WebHosting, Dedicated Servers, and more!
Re: new server
« Reply #13 on: January 08, 2018, 02:30:25 PM »
So can I upgrade manually somehow?   I really don't want to lose what we have. Our forum has been up since the days of Yabb. it is in its 18th year.

As mentioned, always make a backup to prevent just that :)
- CoreISP.net Corporation -
  WebHosting, Colocation, Domain Registration & Network Services
- DedicatedBox.us Servers -
  Low priced Servers in a high-quality Network, the place for all your (advanced) server needs.
  We specialize in hosting big boards. Contact us!

((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Offline Jeff B

  • Full Member
  • ***
  • Posts: 405
Re: new server
« Reply #14 on: January 08, 2018, 02:38:06 PM »
So version 2.0.13 will run under php7 so I can use the package manager to go on up to 2.0.15 ?   

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 49,448
Re: new server
« Reply #15 on: January 08, 2018, 02:39:13 PM »
you might get some errors but it should work well enough to get SMF upgraded.

Offline drewactual

  • Jr. Member
  • **
  • Posts: 250
    • College Football Fan Site CFB51
Re: new server
« Reply #16 on: January 08, 2018, 02:48:10 PM »
i haven't tested this personally, but in a bind.......

you can downgrade your version of php via htaccess...

Code: [Select]
AddHandler application/x-httpd-php54 .php

you can choose the version (54, 56, ect) in that line as well.  It works for apache builds that have the version available, but it's also my understanding it will emulate previous versions of php regardless (so long as they're previous builds).

it's a single line in your htaccess as presented.  IF/IF/IF you have 7 loaded and want to dance right through 13 to get to 14 (which supports 7) this may be the easiest route.  (given it works as advertised- again, i haven't done it).
https://www.cfb51.com is a College Football Fan Site, Store, and Publisher, launched in July of 2017

Offline Aleksi "Lex" Kilpinen

  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 17,088
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • aleksi-kilpinen on LinkedIn
Re: new server
« Reply #17 on: January 10, 2018, 05:02:25 AM »
Depending on your host, that may or may not work.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Jeff B

  • Full Member
  • ***
  • Posts: 405
Re: new server
« Reply #18 on: January 10, 2018, 06:43:40 AM »
Can you guys give me some tips on restoring the database?   I'm using mysql dumper and this is what I have so far.
Database 'forums2' on 'localhost'.
File: forums2_2018_01_09_22_31.sql.gz
Charset: utf8
Up to now 55 of 112 tables were created.
Up to now 335.881 of 12.036.768 records were successfully added.
Now the table 'smf_log_boards' is restoring.

Overall Progress
       2,79 %

Speed
358   
100   50000

243 Minutes 38 Seconds, 754 Page refreshs

Holy cats,  the last time I had to do this was in 2010 and I'm pretty sure it only took 3 hours in total. I'm into 4 hours and not 3% yet.

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,354
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: new server
« Reply #19 on: January 10, 2018, 08:55:33 AM »
are you able to use mysqldump ? I run the following from the Linux command line and it all takes just a few seconds (62 MB DB):

BACKUP

mysqldump -u root -pxxx smf209 > database_smf209_`date '+%d-%m-%Y_%H-%M-%S'`.sql

RESTORE

you may need to "drop database smf209;"

mysqldump -u root -pxxx smf209 < the_file_from_above


Linux CentOS VPS running SMF 2.0 with 140+ mods installed (the full h/w and s/w can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)