installing WordPress via WP-CLI command line

Source: Internet
Author: User
Tags install wordpress

1, first download wp-cli

Curl-o https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.pharchmod +x Wp-cli.pharsudo MV wp-cli.phar/usr/local/bin/wp

2. Install WordPress

$dbuser =dbuser$dbpass=dbpass$dbname=dbnamemysql-u$dbuser-p$dbpass-e "CREATE database $dbname DEFAULT CHARACTER SET UTF8 COLLATE utf8_general_ci; ". /wp--allow-root core download./wp--allow-root core config--dbname= $dbname--dbuser= $dbuser--dbpass= $dbpass./wp-- Allow-root Core Install--url=http://myurl.com/--title= "QC Office"--admin_user=admin--admin_password=my_admin_password [ Email Protected]chown-r www-data:www-data/opt/mydir


installing WordPress via WP-CLI command line

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.