Debian8 Install WordPress Blog

Source: Internet
Author: User
Tags install wordpress wordpress blog wordpress update

First to install PHP5-GD has ensured that WordPress can be installed properly

Download WordPress

wget http://wordpress.org/latest.tar.gz

Extract

tar -xzvf latest. tar. gz

Create a database and a user for WordPress

After connecting to the database (I'm using MARIADB)

Execute the following command

 for [Email protected]= password ("dbpassword"); #设置密码 # gives the user permission to grant all privileges on WordPress. ' Dbpassword ' ; flush privileges; #刷新MariaDB

Set the wp-config.php file in the WordPress directory

//* * MySQL settings-you can get this info from your web host * *///** The name of the database for WordPress*/Define ('db_name','WordPress');/** MySQL database username*/Define ('Db_user','Wpuser');/** MySQL Database Password*/Define ('Db_password','Dbpassword');

Then the files in the WordPress folder are copied to the Site Directory ~

Finally, there is an important thing to do is to change the owner of the site directory to nginx users, or later WordPress update or install the theme will be connected to what FTP server ~

sudo chown www-data:www-data/var/www/html/-Rsudo usermod-a-G www-data usernamenewgrp www< /c7>-data

Www-data is the Nginx user, Usernname is your own user name, to add your user name to the Www-data user group so that you can access the site root directory

Then in the browser to access the WordPress page to install it OK ~

Debian8 Install WordPress 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.