Centos 5.5 to build the WordPress platform

Source: Internet
Author: User
Tags config mysql mysql host centos install wordpress mysql database wordpress database

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:

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.