Linux installation WordPress

Source: Internet
Author: User
Tags configuration php

Linux installation WordPress

2 software used

(1) virtual machine:Vmware workstation 11.0.0 build-2305329

(2)linux:red Hat Enterprise Linux 6

2 Building Process

A Download

Download Wordpress-4.3.1-zh_cn.tar website: http://wordpress.org/download/

Two Installation steps

1. Install the configuration php, MySQL, Apache service

Yum–y Install httpd php php-gd php-mysql mysql-server mysql-client

2. modifying the Apache configuration file

Vi/etc/httpd/conf/httpd.conf

-- Find the following content:

AddType application/x-compress. Z

AddType application/x-gzip. gz. tgz

-- and then add the following:

AddType application/x-httpd-php. php. php3

AddType Application/x-httpd-php-source. Phps

Save exit and restart Apache

Service httpd Restart

3. create a file under/var/www/index.php inside the write:

<?php phpinfo ();?>

Test PHP

4. Modify the MySQL password

Mysqladmin Password 123456

Login MySQL:#mysql-u root-p

5. build a database and build wordpress users

mysql> CREATE DATABASE WordPress;

Mysql> Grant all on wordpress.* to [e-mail protected] identified by ' portalhuan.123 ';

6. refresh the privileges.

Mysql>flush privileges;

7. copy the extracted files from the WordPress directory into the/var/www/ directory. Go to the WordPress directory.

Rename the wp-config-sample.php to wp-config.php.

Open wp-config.php with vimand enter the database information.

Define (' db_name ', ' WordPress '); The name of the database

Define (' Db_user ', ' username '); Your MySQL username

Define (' Db_password ', ' PASSWORD '); ... and password

Define (' db_host ', ' localhost '); 99% chance you won ' t need to change this value

Copy the extracted files from the WordPress directory to the/var/www/ directory (not including the WordPress directory)

three . Test Installation

Open http://127.0.0.1/wordpress/wp-admin/install.php or http://localhost/wordpress/wp-admin/install.php with your browser To install the wordpress

Linux installation WordPress

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.