[Essay] wordpress migration on the entire site

Source: Internet
Author: User
Tags vps wordpress migration
This site has been running for one year. Because of Domain Name Record-filing, the site was originally placed in China. I bought a space in China. Because wordpress is easy to build, I paid for it and the site will soon be ready for use. Because the purchased space is in the Windows + iis6.0 environment, wordpress is not very well supported, such as pseudo static, always

This site has been running for one year. Because of Domain Name Record-filing, the site was originally placed in China. I bought a space in China. Because wordpress is easy to build, I paid for it and the site will soon be ready for use. Because the purchased space is in windows 2003 + iis6.0 environment, wordpress is not very well supported, such as pseudo static, always

This site has been running for one year. Because of Domain Name Record-filing, the site was originally placed in China.

I bought a space in China. Because wordpress is easy to build, I paid for it and the site will soon be ready for use. Purchased SpaceBecause it is a windows 2003 + iis6.0 environment, wordpress support is not very good, such as pseudo static, always set unsatisfactory. The website is frequently inaccessible due to its running speed.The first half of the year was tolerable, because I did not write articles very much, but wrote out problems encountered during the development process.

In the second half of the year, I began to write articles intermittently and found that the space was almost intolerable. So when the space lease is about to end, you will have the idea of changing the space. I searched for it online and got taobao. I thought it was easy to find a domestic space. After all, the domain name has already been filed. But after learning about it for two days, I found that there are few suitable ones.

It mainly involves domain name access issues.To change the space, you must also change the Domain Name Record Filing Service Provider and the access service provider., You need to know the password for domain name filing. The password is forgotten, the mobile phone is changed, and the mailbox is filled with the previous enterprise mailbox. Therefore, it is impossible to retrieve the password. If the password cannot be recovered, the access provider cannot change it and I do not want to use the original space. Therefore, I considered the space in Hong Kong, I spent some time learning about the cost of the Hong Kong Space and finally decided to select the Hong Kong vps, that is, the vps currently used on this site.


After purchasing vps, start back up wordpress, program the backup, and drag it down directly through ftp. Then the database, because I used to use virtual space,When the "backup database" function is used in the background, the backup database files are always faulty during restoration.. Therefore, I contacted customer service to directly say that I wanted mysql database files. After a while, the customer service was packed and put into the virtual space. Because I am using a linux host, windows files cannot be used in linux.

Therefore, I set up php + apache + mysql locally and backed up the file locally. Then, the database is restored successfully using phpmyadmin in the linux management background.

After the database is restored successfully, ftp uploads the original wordpress File. After the upload is successful, modify the following:

1. wp-config.php file, modify database connection information

/** Database name */
Define ('db _ name', 'database name ');
/** MySQL database username */
Define ('db _ user', 'database username ');
/** MySQL Database Password */
Define ('db _ password', 'database password ');
/** MySQL host */
Define ('db _ host', 'localhost ');

If you do not change the domain name, modify the wp-config.php, the site can be successfully accessed.

2. If the domain name is changed, modify the wp_options table in the database. Modify the siteurl and home fields in the table to the current domain name.

Original article, reprinted Please note:Reposted from the silence clown

Link:[Essay] wordpress migration on the entire 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.