After supper idle bored, look at their own virtual machine in a long time ago installed Ubuntu 14.04.5 LTS, suddenly want to build a website, choose to choose, decided to use the WordPress environment, the following step by step to build it.
1. Download the wordpress Package
wget https://cn.wordpress.org/wordpress-4.8.1-zh_cn.tar.gz
Download interface
2. Installing Apache2.0
Install apache2
Because my current user is root, if the non-root user wants to add sudo to the above command
No error, now should have started to run, with the browser to try, enter the virtual machine IP
Apache Installation Complete
3. Install PHP
Install PHP5
4. Install MySQL
Install Mysql-server
This requires setting the root user's password, setting a
Re-enter, after installation, check the network port monitoring, you can see that MySQL has started to work.
5. Installation Support
Install libapache2-mod-auth-mysqlaptInstall php5-mysql
6. Installing phpMyAdmin
Install phpMyAdmin
Select the Web server on which to configure phpMyAdmin, select the first one here
Ask if you want to configure database information first select No, you can see that phpMyAdmin is installed under/usr/share/
Next to configure the phpMyAdmin in the browser, because the Apache directory under/var/www/html, you need to establish a link to this directory, as follows:
LN -s/usr/share/phpmyadmin/
Next Test in the browser, is OK, enter the MySQL username and password to create a database for WordPress
7. Unzip the WordPress file and copy to the Apache working directory
Next Browser Login
8. Complete the installation
Support basic completion, the Web page began to configure it!
Build a WordPress environment on Ubuntu 14.04.5 LTS