Support Forums

Old 06-06-2008, 05:07 PM   #1
Senior Member
 
Join Date: Jun 2007
Posts: 109
Rep Power: 9
crystal is on a distinguished road
Default Creating a test site

I want to copy my site and database and make a test environment on my server so I don't disturb the users when I'm testing changes. Could someone please give me advice on the best way to do this (without running setup on the new test site)?

Thanks!
__________________
Crystal
v4.0.8 Dev
crystal is offline   Reply With Quote
Old 06-06-2008, 06:07 PM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 3,908
Rep Power: 95
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by crystal View Post
I want to copy my site and database and make a test environment on my server so I don't disturb the users when I'm testing changes. Could someone please give me advice on the best way to do this (without running setup on the new test site)?

Thanks!
Create the database on your test server.

Copy over all of your live site files.

Create a backup (ie mysqldump) of your live database.

Open the database flat file and alter the URL for your site in the data to match your new site.

Edit the classifieds/connections.php file so the values work with your new database server.

Import your database on new host and you should be ready to go.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 06-10-2008, 01:32 AM   #3
Senior Member
 
Join Date: Jun 2007
Posts: 109
Rep Power: 9
crystal is on a distinguished road
Default

Quote:
Originally Posted by Lhotch View Post
Open the database flat file and alter the URL for your site in the data to match your new site.
Hi Larry,
Thanks for the reply. I copied over the site and now I am having trouble with the database. I did a backup into an SQL file. I do not know what the above line means. I made a new database and then imported the SQL file into it but I have not done the above step. I think this is where I messed up. Can you please tell me how to do this? Can I do this with phpmyadmin?

I edited the Connections/classifieds.php file to my new database info. So far my test site and the database are not connected. The template files will appear but there is nothing in it from the database. Your help is appreciated!
__________________
Crystal
v4.0.8 Dev

Last edited by crystal; 06-10-2008 at 01:36 AM.
crystal is offline   Reply With Quote
Old 06-10-2008, 01:41 AM   #4
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,399
Rep Power: 41
Maffo is a jewel in the rough
Default

Crystal, you should maybe consider setting up a server on your home machine. That way you make any changes you need, have lightening fast access to files, and keep a nice tidy web server with only the essentials.

There are many WAMP/LAMP systems. Simply search google. I personally use 'webserv'. Really easy to install and setup
__________________
Super Mod v4 Is out and ready for download. DEMO
Purchase V4 Super Mod BETA at Reduced Price

Visit Me @ Classified-Sofware.co.uk

**Important** - All modules with the exceptions of the Bulk Upload System will be removed from my modshop on Tuesday September 30th. If you require a module you must get it before that date.
Maffo is offline   Reply With Quote
Old 06-10-2008, 03:54 AM   #5
Senior Member
 
Join Date: Jun 2007
Posts: 109
Rep Power: 9
crystal is on a distinguished road
Default

Hi Maffo,

Thanks for the advice! I did end up getting my database to work. I did not do the flat file step that was in the post though. I am really nervous about the changes I'm making on the test site, because it's a clone and so close to the live site. I don't want to mess up the real one! I changed the templates to reflect the test site, but since it's on the same domain it's a littly scary.

It might be a better idea to have it on my home computer, I didn't know I had that option. I will look that up and give it a try.

Thanks
__________________
Crystal
v4.0.8 Dev
crystal is offline   Reply With Quote
Old 06-10-2008, 09:31 AM   #6
Moderator
 
 
Join Date: Mar 2006
Posts: 3,908
Rep Power: 95
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by crystal View Post
Hi Larry,
Thanks for the reply. I copied over the site and now I am having trouble with the database. I did a backup into an SQL file. I do not know what the above line means. I made a new database and then imported the SQL file into it but I have not done the above step. I think this is where I messed up. Can you please tell me how to do this? Can I do this with phpmyadmin?

I edited the Connections/classifieds.php file to my new database info. So far my test site and the database are not connected. The template files will appear but there is nothing in it from the database. Your help is appreciated!
The database stores info, like the url to you web site that is used in displaying pages. If you have it loaded on a new server but the old URL is in the database things arent going to work right.

The SQL file is just a plain text file, open it and edit the data in it for the admin table and change the URL to the location of your new site before you upload the data.

Now that you have it uploaded though you should just be able to edit the table by hand (ie phpmyadmin etc etc) and change that calue.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Test your site out in multiple browsers LittleRascal HTML, CSS, and Design Help 1 04-18-2008 12:58 AM
Copying a site , same domain Greg H v3.1 Questions & Support 3 02-19-2008 10:25 AM
Demo site getting ridiculously high rankings??? Maffo v3.1 Modules & Modifications 13 01-09-2008 05:28 PM
RSS site sync. Lhotch v3.1 Modules & Modifications 2 01-02-2008 03:10 PM
Test site calaf6 v3.0 Questions & Support 2 04-02-2006 10:22 AM


All times are GMT -4. The time now is 12:06 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0