Install WordPress to configure the lamp development environment, wordpresslamp
Install and connect WordPress to MySQL
1. Install php7.0:
1. import the source data to apt. Run the sudo apt-get install php7.0 command to download and install php. log on to http: // wordpress/readme.html to verify php installation.
2. install wordpress
2. Download it on the official website and run the sudo tar-xvf wordpress-4.7.4-zn_CH.tar.gz-C/var/www/html command to decompress it to/var/www/html.
3. Use sudo apt-get install libapache2-mod-php (+ tab key) to install php server support for apache2>. If php7.0-mysql is found, run the sudo apt-get install php-mysql command to install php database support.
4. Run the sudo apache2ctl restart command to restart the server. Run the sudo vim/etc/apache2/sites-enabled/000-default.conf command to open the configuration file and write ServerName 127.0.1.1 at the top.
3. Connect mysql and php
5. Connect to the server and create a database wordpress. Use it as the database of the blog.
6. click Login wp-admin/install. php, enter/var/www/html/use the command sudo vim wp-config.php to create
Create the file, write the database connection information to the wp-config.php file, and use the sudo chmod 777 wp-config.php to change its permissions to fully public.
7. register the blog.