How to migrate your site

Source: Internet
Author: User

1. Backing Up the database

Log on to the Web site management platform, in the Database Tools bar under the Extensions menu, select the data link pool that you are using in the Select Data Link pool area, and the corresponding form file name appears below, all selected and then click Start Backup Data, and a prompt for backup success pops up after the backup completes. In this case, one (or more) SQL-formatted files will be generated in the "Caches/bakup" folder of the website.

  

2. Download the database

After completing the above backup, the system will automatically press the database by 2M (that is, 2048KB) to the size of the file, after the backup can click the corresponding file after the "download" connection to download the corresponding SQL format of the backup, generally there will be more than one file, note the serial number after the backup file. Of course, you can also use the FTP software to download (or copy) once.

3. Download the site template

The style and style of the website are stored in the template file, the template file is stored in "phpcms/templates", and the folder is downloaded (or copied) via FTP.

4. Download the CSS File

If the site has modified the location and effect of the template, you need to download (copy) The CSS file, the folder needs to be backed up as "statics/css".

5. Download the database configuration file

The database configuration file under the "Caches/configs" folder "Database.php", here is the name and header of the database, the format is as follows, download (or copy) after the new installation software to use.

1 <?php 2 return Array (3     ' default ' = = Array (4         ' hostname ' = ' localhost ', 5         ' port ' = 3306, 6
    ' database ' = ' phpcmsv9 ', 7         ' username ' + ' root ', 8         ' password ' = ', ' 9         ' tablepre ' = ' v9_ ', 10         ' charset ' = ' GBK ', one         ' type ' = ' mysql ', '         debug ' = ' true,13         ' pconnect ' + 0,14         ' AutoConnect ' = 015         );?>

6. Download (copy) the attachment

Phpcms V9 Default Attachment folder is "UploadFile", the original picture, uploaded files are in this folder, need to download (or copy).

The deployment task for the new site is roughly divided into several steps:

1. Install the website program

Install Phpcms V9 with the original website characters on the new website, use the database name and header when setting up the database, using the contents of (5) above.

2. Upload the source site backup data

Upload (paste) the backed up SQL file to the new Web site "caches/bakup" folder.

3. Upload the source site template

Upload (paste) the template file from the original site to the "phpcms/templates" folder.

4. Upload the source Web site CSS File

If you do not have a CSS that uses the default program, upload (paste) the backed up CSS to "statics/css"

5. Uploading Attachments

Upload (paste) the downloaded "UploadFile" folder to the new Web site root directory.

6. Recovering data

Log in to the background of the new site, select data import from the database Tools under the Extensions menu, select the Backup data to upload below, check whether it is complete, select all, and then click Recover to restore the data.

7. Update the site cache

After the data recovery, please update the whole station buffer, and then check the corresponding column data is completed.

8. Generate websites and columns and home page

After checking the settings of the website, the Web page, columns and homepage of the website can be generated.

This is the end of the site migration.

How to migrate your site

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.