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