Dedecms Space Migration Steps _php Tutorial

Source: Internet
Author: User
Tags mysql backup phpmyadmin vps server wordpress blog
1. Reinstall the original version of Dedecms in the new space, and then put all the data of the old station, here the data refers to the file, that is, in addition to the root directory under the folder include the configuration file config_base.php all the files outside the new space

2. In the old site backend system management-data backup where to back up data, the data here refers to the Dedecms own back-office to take the backup files, similar to the phpMyAdmin and other tools to make the backup. After the backup is complete, DEDECMS will put the backup file in the root directory of the Dede directory (the default is Dede, if you modify, is your modified directory) under the Backup_data folder inside, you will find that there are many text files.

3. Open the background in the new website (Note: Here the domain name has been resolved to the new station), System Management-data backup-restore data-start to restore data, directly restore the line.

Note: When backing up data, specify the backup data format there must be attention, must consult the new space quotient in advance, and then in the decision to choose 3.x/4.0.x or choose 4.1.x/5.x version, or backup error, the old website is not in, you wait to cry! O (∩_∩) O..

First: moving between space and space

In fact, space and space between the most convenient move, we master the steps I said, 100% can successfully move, first everyone into the Dede backstage, select the system-database backup-Select All-then point to start, here to see your database corresponding version to and new space version of the database can be, otherwise garbled. Wait a moment will prompt all data backup complete, according to your database size time not necessarily, after the backup, everybody opens your website ftp, looks at the Data\backupdata directory has the TXT file, this is we just backed up the data, if is not sure the word can look at the file creation date. Then the Backupdata folder with the contents of the download to the local, continue, the Images,templets,uploads,plus all 4 folders downloaded to the local. Finally we re-install the new Space Dede program, to correspond to your version, after installation, the folder to cover the root directory, into the background, select the system-database restore-data restore, you will see your database information, select and click Start Restore data, one will be finished, and then select your home file, Update the first page on the OK, so that our space move is complete.

Second: The background cannot back up the database how to move

For a variety of reasons, we do not enter the background, or the database can not be backed up, then how should I move it? First we use phpMyAdmin into the SQL database, this should be put, do not say Baidu, choose your database and then back up, export to local, Then all the files of your original space are downloaded to your new space, continue to hit the data in this folder common.inc.php This file, modify your new space database account password and IP, and then overwrite, so that you can, but not suitable for beginners to use this method, unless there is really no way, recommend the first Move method, this method is more or less likely a little problem, my site is yesterday from space moved to the VPS server, with This method appears in the background can not be updated, but soon resolved, is the issue of permissions.

Do the site, the domain name generally change energy is not small, space may be turned around. A turn will involve the relocation of website data. To weave the Dream Content Management System DEDECMS build the website to carry on a lot of methods, but effective also only one or two kinds.

Because Dedecms is compiled with PHP, and need MySQL database to prop up a website, Web page area and data base area is not in the same place, not like the ASP program written by the Flood, ZBLOG, Dorset, New Yun, Web page and Access database exist together, Can be relocated throughout the station.

However, the use of WordPress blog program friends, Big can understand that the PHP program to open the page faster than the ASP faster, but static generation effect is less than ASP. What makes people happy is the weaving Dream Content Management System DEDECMS can achieve the article address full static, it is difficult to pass valuable.

In addition, the Dream Content management system Dedecms made out of the site can also be relocated the whole station, the method is as follows:

First, login to your dedecms backstage, in the "system" area to find "Database backup/Restore", the database to "backup";

Second, all the files in the old space, all downloaded to your computer local;

Upload the file to the new space;

Iv. install DEDECMS System in new space, Method--Download a new installation system on the official website of Weaving dream, transfer the contents of the "Install" folder in the system to the space and cover it. Next, Run http://Your domain name/install for installation. It is important to note that the prefix of the database table must be the same as the prefix of the original database table (by default);

Five, after installation, login backstage, click the "System" area of "Database backup/Restore", the data to "restore";

Six, data generation, moving work completed.

Of course, there is an effective way to prevent WordPress blog move:

First, the old space files downloaded to the local, through the phpadmin, the MySQL backup to local;

Second, the website file upload to a new space, the database through the Phpadmin import;

Third, modify the Dede installation of the database name and password: Open the "include" directory under the config_base.php, download this file

Find "Database connection information", the following parameters (database name and password) to change it, upload overlay.

Four, the move is complete.

As to which method is best, it is the benevolent see of the beholder. Here is a reminder, if your Web site MySQL database more than 20M, it is best to take the first method above (also known as Reload method), because some of the space quotient database import with a size limit (generally not more than 20M)-with the reload method can be avoided this limit.

DEDECMS Moving Instructions-Official tutorial is definitely enough detail

Because the name of the MySQL database varies from one virtual host space to another (because its prefix is different, it is used to know),

So you need to back up the database first, then put it in a new space restore, and then regenerate the HTML.

(Note: The new space and the original site MySQL database version must be more than 4.1, or the same is 4.0, 4.0 or less, to avoid problems.) View version can login phpMyAdmin can see the version is how much)

New space when reinstalling the same version of the DEDECMS system,

The database name and database user name and password are, of course, filled in with a new database,

The database tables that you set must be prefixed with the prefix of the original database table to avoid seeing the content.

This is exactly the case:

1. Login background, BACKUP database (This database backup file is saved in the. /dede/backupdata/), and remember the username and password of the login background.

2. Download the database backup file (ie.. /dede/backupdata/this folder), website style template file (ie.. /templets/this folder), and. /upimg/This folder (this is the folder where all the uploaded files are saved).

3. Reinstall the same version of the DEDECMS system in the new space, at which point the database table must be prefixed with the prefix of the original database table to avoid seeing the content.

(The database name and database user name and password are, of course, filled with the new database.)

4. Upload the original station. /dede/backupdata/and. /templets/and. /upimg/these 3 folders to overwrite the corresponding folders in the new space, so that the original site of the database backup files and website style template to the new station.

5. Log in to the new Space backend > System Settings > Database management > Database restore, restore the database, and then set the site's "Modify system Parameters" (or "System variable Configuration"), the entire station to regenerate the HTML.

After the database recovery, the background login username and password to use the back up the original website login username and password.

Different space MySQL database default character encoding is not the same, in order to prevent garbled, you back up the old database when you look at the original encoding (usually Latin or GBK), restore the database to see whether the new database supports your encoding (some databases do not support GBK), If you support the selection of the same encoding after recovery, there will be no garbled problem.

http://www.bkjia.com/PHPjc/440286.html www.bkjia.com true http://www.bkjia.com/PHPjc/440286.html techarticle 1. Reinstall the original version of Dedecms in the new space, and then put all the old station data, here the data refers to the file, that is, in addition to the root directory under the folder include configuration file Confi ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.