10 Dec 2008 Creating a SMF Test Site
What is a test site? It is a site that you can use to play with and install mods, themes, etc. without fear of crashing your live site or upsetting your users. Basically, a test site should look like your live site and IS an EXACT duplicate of your site minus the activity of your users. It should have all of the same mods, themes, custom coding, settings, and security. The only things that will be different will be the fact that you do not need any users (except yourself) nor any posts except for testing. You should always try mods, themes, etc. on a test site FIRST! If you trash it...no harm, no foul and it will make for a good learning experience.
For this you'll need two things: a database and the forum software. We'll create the database first. To do this you can follow the instructions below: 1. Create a new database. You can find instructions on how to do this by viewing the tutorial: "Creating a MySQL Database using cPanel". Give this one the same permissions and access to the same user(s) as the one you copied had from your live site. Name it something different from your live site like "test" or something that you will remember easily. 2. Backup your databse using MySQL's "export" feature or using Big Dump. This can take quite awhile if you have a large database and are using cPanel to do this. Copy and save the information to a text file. 3. Import your database using MySQL's "Import" feature using the saved text file in step #1. This can take quite awhile if you have a large database. If you have problems becuase the file is too large you can break it into smaller sections by copying and pasting in parts of it until you get all of the parts imported. Now, you'll need to create your forum by following the instructions below: 1. Download the SMF upgrade (not update) package that is the same version as your live forum's version. It is very important that you do use the same version. If you do not, you will run the risk of having your mods not working when you install them. Other features of your fourm may also not work. 2. Create a new directory on your server. You can name it whatever you wish. But you must give it a different name than the one you use for your live forum. 3. Download settings.php and settings_bak.php from the root directory of your live site. Upload settings.php and settings_bak.php to the root directory of your test site. This will set your test site to to the same database settings and main URL as your live site. You will need to run repair_settings.php later to change the url/links of the settings files to match your new directory. More on that later. 4. Next, if you have cPanel on your server follow "A." below. If you do not have cPanel then follow "B." below.
B. Extract the SMF upgrade that you have download to a directory on your hard drive. Upload all of the extracted files to the new directory that you have created for your test site. You can do this via FTP. Run "upgrade.php" in a browser using http://www.your_site.com/upgrade.php. "your_site" is the domain and subdirectory where your test site resides. Then, just follow the prompts. 6. Copy all of the following directories from your live site to your test site as well as any directories can have files you've created or uploaded yourself or were installed via your mod(s), if any. These will include such mods as an arcade game files and all directories, any photo gallery directories and images...you get the idea:
B. /avatars - contains everyone's avatars. C. /Smileys - contains your smiley sets. You will only need to copy this if you have added custom smileys and/or custom sets. D. Any custom themes you have on your live forum. E. Any custom files and directories that you use on your live site. 8. Go to Admin -> Themes and Layout -> Themes and Settings. Click the "Attempt to reset all themes" button located at the bottom of the page as shown below: ![]() 9. Go to Admin -> Smileys and Message Icons -> Settings. Make sure that the following 2 settings have the correct URL for your new test site:
B. Absolute path to all smiley sets: 11. You can now install your old mods if you wish. Since you are using the same database and may have copied over any directories with them you should not have to reconfigure your mods. You will also not have to add the information you want shown because it will already be there.
|