1, complete lamp basic Realization
Administrator who needs to manage the blog database, previously created the test user permissions are not enough, give the test user plus permissions
Grant all on * * to ' test ' @ ' 192.168.191.% ';
SYSTEMCT Restart MARIADB
2. Implement database phpMyAdmin
when mariadb,php,httpd on a host, can be achieved, if only to build a personal blog, this step can not do, create a database, etc., on the Linux implementation can.
(1) Download phpMyAdmin address https://www.phpmyadmin.net/downloads/
Note: Do not download the latest version, the latest version may not support the PHP version of your system
i downloaded this version.
Phpmyadmin-4.0.10.20-all-languages.zip
(2) RZ Import
Decompression: Unzip Phpmyadmin-4.0.10.20-all-languages.zip
(3) Cp-a PHPMYADMIN-4.0.10.20-ALL-LANGUAGES/VAR/WWW/HTML/PMA
cd/var/www/html/pma/
CP config.sample.inc.php config.inc.php
Vim config.inc.php Modify the address below for your native address
(4) test:
HTTP://192.168.191.107/PMA can log in, that is, success
3. Create a database to store your blog
Create a WPDB database
in Linux you can see that the data can be created successfully
4, let create wpadmin user management wpdb database, and give all permissions
You can also authorize grant all on the Linux wpdb.* to ' wpadmin ' @ ' 192.168.191.% ';
3. Realize WordPress
(1) Download WordPress
Official website : https://cn.wordpress.org/
The version i downloaded is wordpress-4.8.1-zh_cn.tar.gz
(2) RZ Import
Unzip the tar xvf wordpress-4.8.1-zh_cn.tar.gz
Copy to this directory renamed to blog Cp-a Wordpress/var/www/html/blog
(3) Cd/var/www/html/blog
CP wp-config-sample.php wp-config.php
Vim wp-config.php
4. Testing
Http://192.168.191.107/blog
(1) Fill in the information of the blog
(2) Click on the lower left corner of the installation WordPress, go to the following page
(3) Login
Successfully visit the blog, you can start to write a blog