WordPress Migration

28 Aug No Comments

How to move WordPress to a new site

1. Backup the webpages and database (for instance, the database is saved as wp_db.sql)

2. copy the webpages and the database to the destination site.

3. create database on the new server site
3.1 mysql -p (password), and enter the password
3.2 mysql> create database “wordpress_db”;
i.e.:”wordpress_db” means the database of the worpress website. NO NEED OF “”

4. input the database: mysql -p “wordpress_db” < wp_db.sql

5. Extract the webpages to the destination site
5.1 /etc/httpd/sites-enabled to create a file
5.2 A sample of the config file as
[root@suitehk sites-enabled]# cat solarsystems.net
<VirtualHost *:80>
ServerName www2.thesolarsystems.net
DocumentRoot /home/jerry/www/solarsystems
</VirtualHost>

<Directory /home/jerry/www/solarsystems>
Options FollowSymLinks
Allow from all
</Directory>
5.3 REMINDED: chmod 755 on the /home/jerry/www/solarsystems, especially the home directory is drwx—— at CENTOS’s user home directory…

Latest Comments

Leave a Reply

相關訊息