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