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