complete noob to drupal here and I have a couple sites up and going, although since my first website I have learned a lot more and would like to go back and kind of redo it. What I would like to do is keep the original site *online* as well as have fresh install that I can work with until I get it up and running. Then I would like to remove the original *online* site and replace it with the new version. Any help or ideas would be greatly appreciated!

Comments

Kirk’s picture

You need to make a development environment. The ideal way would be to copy your database and files to another location or server, run the updates you need to, then begin making the changes you want.

When you're done developing, you move all your files to your live server.

This is a good place to start http://drupal.org/setting-up-development-environment but really, this is the sort of thing you can approach a million different ways. Much of it is based one your personal preference.

Tlommy’s picture

Thanks for the heads up! so essential copy the contents of my server root folder and create a new folder in there called say "test" and paste it all in their?

Tlommy’s picture

im assuming I would need to contact go daddy about dealing with the databases?

Kirk’s picture

You could do that, but I personally don't like that method as it can sometimes be difficult to manage 2 instance of Drupal running in the same docroot.

My preference is to create a subdomain. For instance, dev.domain.com. Then copy all the files to it, and copy the database.

Some people prefer to work on their machines locally using MAMP or WAMP.

Tlommy’s picture

Yea ive used wamp but idk I like it online for sum reason. Now I never did a sub domain how would I go about that? as far as I knew you buy domain then point it to where it needs to be.

Kirk’s picture

If you're on GoDaddy, you should probably refer to their knowledge-base.

Tlommy’s picture

cool thanks a lot man gonna head there now!

Tlommy’s picture

...the whole database deal. I backed it up, but not sure how or where to put the backed up database files.... http://dev.thetwitprofits.com comes up but thats all, im guessing it's cause I dont have the database in the /dev folder....

Kirk’s picture

When you backup a database, you then have to create a new database and import the data. Most hosts have something like phpMyAdmin that you can use to do this through a gui.

You will also need to change your settings.php file to connect to the test DB. You can find plenty of information about this stuff in the handbook.

Tlommy’s picture

im gonna have to head over there cause im lost! lol I thought I had it all set up removed a block and it removed it from my main site as well...

GDHosting’s picture

Tlommy,

You can make a back up of your database and restore it to a new one. The database backups in our hosting accounts are placed in a directory called _db_backups. Once the new database is set up, you can then restore it from the file in the _db_backups directory.

^Courtney