mysql:install
Install a MySQL database server.
$ apt-get install mysql-server
try on your machine
explain this command
wordpress:database:create
Create the database for the WordPress installation
$ mysql -e "CREATE DATABASE ${database_name};" ${password};
try on your machine
explain this command
wordpress:database:user:create
Create the user (with permissions) a the WordPress installation
$ mysql -e "CREATE USER '${username}'@'localhost' IDENTIFIED BY '${password}';GRANT ALL PRIVILEGES ON *.* TO '${username}'@'localhost' WITH GRANT OPTION;FLUSH PRIVILEGES;"
try on your machine
explain this command
wordpress:download:latest
Download the latest version of WordPress
$ wget https://wordpress.org/latest.zip
try on your machine
explain this command
linux:zip:decompress
Decompress the given zip file.
$ unzip ${filename}
try on your machine
wordpress:config:file-permissions
Set the correct file permission
$ chmod -R 755 wp-content/
try on your machine
explain this command
wordpress:cli:install
Install the WordPress CLI tool.
$ curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
$ chmod +x wp-cli.phar
$ sudo mv wp-cli.phar ${dir_to_install}
$ chmod +x wp-cli.phar
$ sudo mv wp-cli.phar ${dir_to_install}
try on your machine
explain this command