I. Requirements for building the Wordpress physical environment:
WordPress 3.3.2 server requirements
Php 5.2.4 or later
MySQL 5.0 or later
2. Build Wordpress
1. Get the Wordpress Software Package
Wordpress's simplified Chinese official website http://cn.wordpress.org/
2. install Wordpress
Unzip: tar-zxvf wordpress-3.3.2-zh_CN.tar.gz-C/data/
Cd/data/wordpress
Cp wp-config-sample.php wp-config.php (mv is not available only with cp)
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 Database Name, user name, password and IP address of its database server
// ** MySQL settings-specific information comes from the host you are using **//
/** WordPress database name */
Define ('db _ name', 'wordpress ');
/** MySQL database username */
Define ('db _ user', 'wordpress ');
/** MySQL Database Password */
Define ('db _ password', 'wordpress ');
/** MySQL host */
Define ('db _ host', 'mysql database IP address ');
Add the Wordpress virtual host to the main configuration file of Apache
5. Configure the Apache 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 Apache service and test it on the client.
6. Test the Wordpress environment. If the domain name of test.wordpress.com is not registered, modify the hosts file of the Local Machine and add the following content to the hosts file:
Wordpress server IP address test.wordpress.com
In the browser enter the following address http://test.wordpress.com: 8080 the following error occurs, preliminary judgment is no access permission.
View Apache error log information as follows:
Comment out lines 118 and 119 of the Apache main configuration file.
Restart Apache service, just now the problem has been OK, through http://test.wordpress.com: 8080 configure wordpress site name, admin account password, Administrator mailbox address can be, below is the wordpress admin login interface.
This article from the "simple dream catcher" blog, please be sure to keep this source http://sfzhang88.blog.51cto.com/4995876/871495