Transfer Note: If there is no Apache + PHP + MySQL environment, please refer to my blog
(1) First download WordPress,
sudo wget http://wordpress.org/latest.tar.gz 
(2) when the download is complete, unzip the
sudo TAR–XZVF latest.tar.gz
(3) Move the extracted folder to the/var/www directory
sudo mv wordpress/var/www/
sudo chown-r www-data:www-data/var/www
(4) Create a database
sudo mysql–u root–p
Root is the database user name, then enter the password as prompted to enter the MySQL command interface
Create a database
Create database wordpress default Charset=utf8;
CREATE USER [email protected] IDENTIFIED BY ‘wordpresspassword‘;
Next, you need to assign administrative permissions to the administrator:
GRANT ALL PRIVILEGES ON wordpress.* TO [email protected];
grant all privileges on wordpress.* to ‘root‘@‘localhost‘;
You need to refresh the permissions information to activate the user rights:
FLUSH PRIVILEGES;exit
After the database is created, quit MySQL. Here you can use the phpMyAdmin to set up the database. In the Browse
You can login to the database management interface by entering the address http://yourserverip/phpmyadmin in the
(5) Modify the wp-config-sample.php file in WordPress
Edit WordPress config.php file,
cp /var/www/html/wp-config-sample.php /var/www/html/wp-config.php
sudo nano/var/www/wordpress/wp-config.php
Modify the location of the red box callout, db_name is the name of the database, Db_user is the user name of the database,
Db_password is the password of the database, after the modification is completed, save, exit.
Modifying the Authentication key section
Auth_key ...
The key can be generated automatically via https://api.wordpress.org/secret-key/1.1/salt/.
(6) After the above steps, the WordPress installation has completed, the bottom of the access, in the browser to enter the address
Http://localhost/wordpress
Indicates that the WordPress installation was successful, which also verifies that the Apache,php,mysql installation was successful.
Ubuntu Install WordPress