Use lamp+wordpress to build and beautify your blog

Source: Internet
Author: User
Tags ftp login nets wordpress database

Prepare the article

A domain name

Can go to million nets, new nets,...,...

A cloud space (preferably a Hong Kong host, or foreign, without filing)

Then add the domain name to the IP address of your cloud space to add a record


Installation article

Download the wordpress installer package.

Install lamp:
CentOS 6:httpd, PHP, Mysql-server, Php-mysql

Service httpd start Service mysqld start

CentOS 7:httpd, PHP, Php-mysql, Mariadb-server

Systemctl start Httpd.service systemctl start Mariadb.service

Chkconfig--list See if there is httpd,mysqld.

If not, chkconfig--add service Name

Boot Auto Start service

Chkconfig httpd onchkconfig mysqld on


the next step is to create a database and database user name for WordPress .

Mysql>create database WordPress; ---> Create a database named WordPress, the following; The number cannot be omitted mysql> GRANT all on wordpress.* to username @localhost identified by ' password ';


The next step is to extract the downloaded WordPress package into the/var/www/html/directory

Tar xf/path/to/wordpress.tar.gz/var/www/html/

Enter this directory, copy the wp-config-sample.php and name it wp-config.php. (This is the WordPress configuration template)

Modify the wp-config.php file

* * MySQL Settings-specific information from the host you are using * *///** WordPress database name */define (' db_name ', ' WordPress ');/** MySQL Database user name */define (' Db_use R ', ' username ');/** MySQL database password */define (' Db_password ', ' password ');

The next step is to access it. (Example: www.xxx.com/wordpress)


Beautify the article

Add Plugins:

Update plugin for blog The wrong times

To perform the requested action, WordPress needs to access your Web server's permissions. Please enter your FTP login credentials

Because the Apache service sometimes does not have permissions, and the workaround

Change the owner of all files in the WordPress directory to Apache

Chown apache/var/www/html/wordpress/*

Change Wp-content directory permissions to 777

chmod 777/var/www/html/wordpress/wp-content


Change theme

You can change the theme under the appearance-theme, or you can download it from somewhere else and upload the past.
To share a theme that you are using: Https://pan.baidu.com/s/1pK7bxmr extract code ACHQ
The installation can be enabled.
Add background music

1, in the plug-In search hermit, installation can be. You can add a music library to make it easy to call when writing an article. At the same time, when you write an article, you will find a button to add music above the edit bar.

2, with Flash plug-in

With the dashboard-sidebar gadget, add a text to the right, and the title can take music and so on. The contents are as follows

Find a song in NetEase cloud music, click Create outside Chain player

650) this.width=650; "class=" AlignCenter wp-image-28 "src=" http://www.zhaoyongtao.top/wordpress/wp-content/uploads /2016/04/2016041413285010.png "alt=" 1 "height=" 268 "width=" 467 "/> 650) this.width=650;" Class= "AlignCenter Wp-image-29 "src=" Http://www.zhaoyongtao.top/wordpress/wp-content/uploads/2016/04/2016041413290029.png "alt=" 2 " height= "377" width= "441"/>

Copy the code into the content.


Add a personalized clock

Search plugin Wp_flashtime widget to download and install.

Then also find the dashboard-sidebar gadget, add a text to the right, the title can be named time, etc., empty default title is Wp_flashtime Widget

650) this.width=650; "class=" AlignCenter size-full wp-image-30 "src=" http://www.zhaoyongtao.top/wordpress/ Wp-content/uploads/2016/04/2016041413330694.png "alt=" 3 "/>

can be set width and height, clock number refers to the type of clocks, all types such as

650) this.width=650; "class=" AlignCenter wp-image-31 "src=" http://www.zhaoyongtao.top/wordpress/wp-content/uploads /2016/04/2016041413360319.jpg "alt=" wp-flashtimewidgeta1 "height=" 738 "width=" 782 "/> Select a favorite is good ~ ~ ~

Of course, the above is only a few simple knowledge, the shortcomings also please point out. Welcome to the Exchange.

Written on 2016-04-14 21:47


This article is from the "Tao Sound Still" blog, please make sure to keep this source http://zhaoyongtao.blog.51cto.com/10955972/1764379

Use lamp+wordpress to build and beautify your 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.