|
|
#1 |
|
Senior Member
Join Date: Jun 2007
Posts: 109
Rep Power: 9 ![]() |
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 |
|
|
|
|
|
#2 | |
|
Moderator
Join Date: Mar 2006
Posts: 3,908
Rep Power: 95 ![]() ![]() |
Quote:
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 |
|
|
|
|
|
|
#3 | |
|
Senior Member
Join Date: Jun 2007
Posts: 109
Rep Power: 9 ![]() |
Quote:
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. |
|
|
|
|
|
|
#4 |
|
The Master
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,399
Rep Power: 41 ![]() |
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. |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jun 2007
Posts: 109
Rep Power: 9 ![]() |
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 |
|
|
|
|
|
#6 | |
|
Moderator
Join Date: Mar 2006
Posts: 3,908
Rep Power: 95 ![]() ![]() |
Quote:
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 |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |