By bdmp on
Can I copy my drupal website and install it at another location? RIght now I have a site at http://www.blahg.kokekokkou.net and I want to move it to http;//www.kokekokkou.net
Is this possible? How do I do it?
Can I copy my drupal website and install it at another location? RIght now I have a site at http://www.blahg.kokekokkou.net and I want to move it to http;//www.kokekokkou.net
Is this possible? How do I do it?
Comments
As for the data you may have
As for the data you may have in your site, it's all in your database.
I have already tried backing up my mySql database using phpMyAdmin and it went pretty smooth.
If you also use mySql and phpMyAdmin you should select your database and go to the export feature. This will export all tables and data to a *.sql file that you can then import to your new site's database.
You can find more details on database backup here: http://drupal.org/node/434
Them you should check if you made any changes to the aesthetic stuff, like theme files, css files, etc…
The main idea is to test if everything went ok before deleting something ;o)
mysql backup
Hi!
the procedure is pretty easy and is the same for almost all the web applications (like drupal, wordpress, phpbb,etc). You have to log in to your website control panel and use the web based program PhpMyAdmin to create a back-up copy of your database. Then go to the new website and load your oldDrupalDatabas.sql in to a new database using the same tool. Then, if you configure properly the connection in $your_drupal_directory/sites/default/settings.php it will work.
Good Luck!
_Andrea
From the Drupal handbook
Home » Drupal handbook » Administrator's guide » Installation » Installing Drupal » Special cases
Moving your Drupal installation to a new directory
If for instance you need to move your installation from www.mysite.com/development/ to the root directory of www.mysite.com, just follow these simple steps:
Copy Files
Copy the files of your Drupal installation from the old directory to your new directory. Make sure you include .htaccess.
Change Path
In your new directory, open the file (4.5 or earlier) includes/conf.php or (4.6) sites/default/settings.php
Look for a line that begins with "$base_url = ", update this so that $base_url equals the path to your new directory. Save the file and close it.
You might need to modify the .htaccess file as well.
Update Cron
If you set up Cron on your old installation, make sure you update it to point to your new installation.
Delete Old Directory
Test that everything is working in your new installation. If so, it is now safe to delete the files in your old Drupal directory.
Sam Raheb
Sam308
men_cache
Don't forget to truncate menu_cache. Look at http://dorax.naturalp.org for full explanation.
Greetings,
Dorax