Lamp based on the PHP module to achieve a personal blog construction of graphic details

Source: Internet
Author: User
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

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.