Build a Wordpress platform on Centos

Source: Internet
Author: User
Tags apache error log mysql host install wordpress wordpress database

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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.