Install WordPress to configure the lamp development environment, wordpresslamp

Source: Internet
Author: User
Tags php server php database install wordpress

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.

Related Article

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.