Deploy WP site

Add DNS in cndns.com #like pmcb.zjueke.com  A record  60.12.107.213

ssh dabaobao@60.12.107.213

mkdir /var/www/html/pmcb

chmod -R 777 /var/www/html/pmcb/

 

# configure apache for pmcb.zjueke.com

cd /etc/apache2/

cd sites-available/

cp www.zjueke.com pmcb.zjueke.com

vim pmcb.zjueke.com (edit its document root and DNS)

a2ensite pmcb.zjueke.com  (apache 2 enable site…)

/etc/init.d/apache2 reload

 

install wordpress and theme:

cd /var/www/html/pmcb/

wget http://cn.wordpress.org/wordpress-3.4.2-zh_CN.tar.gz

tar -zxvf wordpress-3.4.2-zh_CN.tar.gz

cp -r ./wordpress/* ./   (copy all wordpress files to current directory)

 

 

visit pmcb.zjueke.com to install it.

you can visit it now.

 

after installation, delete all the default database, and import your pbcm.sql with “127.0.0.1/pmcb” replaced by “pmcb.zjueke.com”

 

that’s all!

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注