One, build WordPress physical environment needs:
Server Requirements for WordPress 3.3.2
PHP 5.2.4 or a later version
MySQL 5.0 or later
Second, build the WordPress steps
1. Get WordPress Package
WordPress Official Simplified Chinese website http://cn.wordpress.org/
2. Install WordPress
Decompression: TAR-ZXVF wordpress-3.3.2-zh_cn.tar.gz-c/data/
Cd/data/wordpress
CP wp-config-sample.php wp-config.php (only CP cannot use MV)
3.Mysql Database Configuration
Mysql>grant all privileges on wordpress.* to wordpress@ ' wordpress server IP address ' identified by ' WordPress ';
4.vim wp-config.php, modify the database name, username, password and the IP address of the database server
* * MySQL Settings-specific information from the host you are using * *//
/** WordPress Database Name * *
Define (' db_name ', ' WordPress ');
/** MySQL Database User name * *
Define (' Db_user ', ' WordPress ');
/** MySQL Database Password * *
Define (' Db_password ', ' WordPress ');
/** MySQL Host * *
Define (' Db_host ', ' MySQL database IP address ');
Add a WordPress virtual host to Apache's main configuration file
5. Configure Apache's virtual host
Vim/usr/local/httpd/conf/httpd.conf
<virtualhost *:8080>
ServerAdmin shifeng_zhang88@163.com
Documentroot/data/wordpress
ServerName test.wordpress.com
</VirtualHost>
Restart the service of the Apache Service and test on the client
6.Wordpress environment test, if test.wordpress.com domain name is not registered, need to modify the Hosts file, in the Hosts file add the following content
IP address test.wordpress.com for WordPress server
The following error occurred in the browser input below address http://test.wordpress.com:8080, the initial judgment is that there is no access.
Check Apache for error log information as follows: