WordPress (ii) WordPress Environment Migration

Source: Internet
Author: User
Tags wordpress database

migrating WordPress to the server

The local environment is as follows

win8.1

Appser

The server environment is as follows

Centos7

Lnmp

1. Use phpMyAdmin to back up the local WordPress site database

2. Back up the entire folder of the local WordPress site

3. Modify the wo_config.php file in the WordPress site folder to change the user name and password of the MySQL database to the user name and password on the server.

4. Upload the modified WordPress site folder to the CentOS Web site root directory.

5. Establish the Rewrire rule in the/usr/local/nginx/conf above CentOS

6. Use phpMyAdmin to set up the WordPress site database on the server side and restore the local WordPress database to the server side

7. Use phpMyAdmin to locate the Wp_options table in the restored database

Find two lines of option_name for SiteURL and home

Change its option_value value to the domain name of the server-side WordPress site

8. Speed up site loading

Install the following plug-in in the background plug-in and enable

Disable Google Fonts//disable Google Font services

Disable Google Maps//disable Google Map service

In the Themes folder, locate the functions.php file where you added the following:

  

function Wpdx_replace_open_sans () {  wp_deregister_style (' Open-sans ');  ' Open-sans ', '//fonts.useso.com/css?family=open+sans:300italic,400italic,600italic,300,400,600 ' );   if (Is_admin ()) Wp_enqueue_style (' Open-sans 'init ', ' Wpdx_replace_open_sans ');

Replace Google's font service with a 360 font service.

WordPress (ii) WordPress Environment Migration

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.