TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,910
  • Total Topics: 21,307
  • Online today: 872
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 384
  • Total: 384

Quick question hopefully easily answered.

Started by stang7043, August 13, 2010, 09:41:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stang7043

Link to my site: http://m-g-club.com/index.php
SMF version: SMF 1.1.11
TP version: TinyPortal v1.0 beta 3
Theme name and version: Custom
Browser Name and Version: n/a
Mods installed: n/a
Related Error messages: n/a


Im looking to upgrade everything to the newest ver. for both SMF and TP. Before I do that Id really like to create a mirror of the live site as a test site do the install there and test it for a week or two before updating the live site. Are there instructions out there any where where I might find how to create a test site or the easiest way to create a test site? I did some searches but couldnt find any thing on instructions of creating a test site. Is it as simple as taking a backup of the existing site creating a new folder under the root and new database and importing it or is a lot more involved ? Thanks in advance. If this is in the incorrect forum please move it to the correct one.

IchBin

Some simple steps:
Assuming you have a tool in your control panel for your host like phpMyAdmin.
1. Create a new database.
2. Export the database from your live forum.
3. Import the database into your new forum created in step #1.
4. Create folder in site (call it test if you want)
5. Copy all files from live site forum into the test folder created in step 4.
6. Download repair_settings.php from the SMF > Downloads > Tools page.
7. Put it in your test folder where you duplicate forum is going to be.
8. Access that file in your browser http://www.yoursite.com/test/repair_settings.php
9. Change all the paths and URL's to your new test directory path and URL.

Should be done. Viola!

winky100

I would just add that when you export the database export both the structure and the data. If you only export the data then you have to empty all the tables in the new database before you import the old database, otherwise when you import the old database into the new forum you will get could not insert errors on the new database.

Crip

This is good information to know! 
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



lurkalot

Yep it is good info, I used it a while back to test upgrading my live site.  (haven't actually upgraded it yet though).

I think I'm also right in saying, import your database from your old SMF1 site before you upgrade to SMF2?  I don't think you can do it afterwards.

stang7043

Quote from: IchBin on August 13, 2010, 10:54:56 PM
Some simple steps:
Assuming you have a tool in your control panel for your host like phpMyAdmin.
1. Create a new database.
2. Export the database from your live forum.
3. Import the database into your new forum created in step #1.
4. Create folder in site (call it test if you want)
5. Copy all files from live site forum into the test folder created in step 4.
6. Download repair_settings.php from the SMF > Downloads > Tools page.
7. Put it in your test folder where you duplicate forum is going to be.
8. Access that file in your browser http://www.yoursite.com/test/repair_settings.php
9. Change all the paths and URL's to your new test directory path and URL.

Should be done. Viola!

Ill try that out tomorrow I appreciate the help. I do in fact have phpmyadmin. And of course I will take a backup just before I preform these steps just in case. I already have a test folder under the root html and have a database created named test<sitename>. Just one more question generally speaking changing all the paths to point to the test site would en tale hours of work going through lines of code or is it simply changing the paths when I run the repair_setting.php? Sorry guys Im total noob when it comes to this stuff. I kinda got dumped into this cause I have "computer" knowledge. lol I know nothing about web scripting or php files etc etc ... Thank God for you guys though. lol Id be totally screwed. lol

Quote from: lurkalot on August 14, 2010, 05:24:52 PM
Yep it is good info, I used it a while back to test upgrading my live site.  (haven't actually upgraded it yet though).

I think I'm also right in saying, import your database from your old SMF1 site before you upgrade to SMF2?  I don't think you can do it afterwards.

Will do. Once I have the test site up Ill work through the upgrade process step by step.




IchBin

The repair_settings.php file will be the only thing you need to do. It will show you all the paths and URL settings. You can simple click the corresponding link above each box to have it change the URL for you. Just make sure you verify each box and know that the settings are correct. There should be no manual editing required for you to do this. Good luck! Let us know if you get stuck.

stang7043

#7


I point to the file and choose traditional SQL compatibility mode

When I try to import the database I get that error.

**Update I think I figured it out.** When I was exporting the DB I selected both the DB and the information_schema. I just selected the DB removed the reference to the original DB (shown below) in the sql file and was able to import it. I still have to copy everything into the test folder and change the paths. Once thats done Ill post again.


--
-- Database: `live site db name` (changed to test site db name)
--
CREATE DATABASE `mbg0819001051922` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE mbg0819001051922;
< ~~~ Removed that ref.

stang7043

arghhh .... now when I run the repair_settings.php Im getting errors connecting to mysql. the un and pw are correct. It says the server name should be localhost. I changed it to local host and it still can not connect. Would  the server name be the same as the live site because I can not remember if the server name was the same or should I leave it at local host ? Im also not sure why it cant connect. I know its something simple but just cant figure it out. Im thinking somewhere its pointing back to the live site ? Any help is appreciated.

IchBin

I have no idea what you're trying to do. Are you setting this up on your desktop? On a server? For the server name for your database it is usually localhost. But some hosts use a different server to provide the database. All you have to do is look at your other SMF forum in the server settings if you're indeed setting it up on the same server.

This website is proudly hosted on Crocweb Cloud Website Hosting.