Deploy WP site

Add DNS in #like  A record

ssh dabaobao@

mkdir /var/www/html/pmcb

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


# configure apache for

cd /etc/apache2/

cd sites-available/


vim (edit its document root and DNS)

a2ensite  (apache 2 enable site…)

/etc/init.d/apache2 reload


install wordpress and theme:

cd /var/www/html/pmcb/


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

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



visit to install it.

you can visit it now.


after installation, delete all the default database, and import your pbcm.sql with “” replaced by “”


that’s all!


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