| How to Move Your phpMyDirectory Site to a New Server |
|
|
|
|
If you've been running a website for a while, you have probably already accumulated quite a bit of content and several 3rd party components and/or modules, and you do not want to start fresh with a new phpMyDirectory installation. This article explains how you can move your phpMyDirectory from your old server to a new server. Why not use a fresh install? You will want to move your phpMyDirectory installation rather than re-install if you fit one or all of the following parameters:
Backup all files within your phpMyDirectory installation. Create a folder on your local system, and download all files to that folder using your ftp client application. Step 2: Export your database Note: For this step, it really helps if you have phpMyAdmin installed on your server. Most hosting companies have phpMyAdmin already installed. If you are unsure, ask your hosting provider. The second thing you need to do is export your phpMyDirectory database. The best thing to do is to export it into an SQL file, which makes importing it easier in a later step. An SQL file will contain all of the necessary SQL commands for creating your database tables and filling them with your data. Be sure you export the entire database. Step 3: Modify defaults.php This step is very important. Go to the folder on your local system to which you downloaded all of your phpMyDirectory files. In the first level folder, you will find the file named "defaults.php". Open this file with a text editor and make the necessary changes. At the very least, you will probably need to change the following parameters:
Using an ftp client application, upload all of your files to the location on your new server where you want to install phpMyDirectory. Step 5: Import your database to your new MySQL server Using phpMyAdmin (or console commands if you are an advanced database administrator) and the SQL file you generated in step 2, import your old database into your new database. Step 6: Test your new installation Your move should now be complete. Test your site to make sure that everything is working the way you expect it to. If you are uneasy or uncomfortable with this process, we strongly recommend that you hire a professional to do this for you. |
|
| Thursday, 08 May 2008 |










Creative Commons License