Install WordPress Using WP-CLI on Ubuntu 18.04
Install WordPress Using WP-CLI on Ubuntu 18.04
SSH
chmod 400 ./PATH/KEYNAME.pem
# or
chmod 600 ./PATH/KEYNAME.pem
ssh -i ./PATH/KEYNAME.pem [email protected]://REMOTEURL
scp -i ./PATH/KEYNAME.pem [email protected]://REMOTEURL:/var/www/html/REMOTEURL.com/public_html/index.htm /LOCAL/PATH/index.html
Installing WP-CLI + WP Core
WP-CLI is available as a PHP Archive file (.phar
).
wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
make this .phar
file executable and move it to /usr/local/bin
so that it can be run directly:
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
Check if ti works
wp --info
…just in case , how to install on Mac with homebrew
brew install wp-cli
command to download WordPress
wp core download
How to Install and Use WP-CLI to Manage WordPress Websites
In this tutorial, Ahsan Parwez covers exactly what WP-CLI is, how to install it, and provides an overview of the commands for this handy command line tool.
Prepare WordPress Database
mysql -u root -p
CREATE DATABASE wordpress;
CREATE USER 'wpuser' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser';
FLUSH PRIVILEGES;
Configure and Install Wordpres
cd /var/www/html/example.com/public_html/
wp core config --dbname='wordpress' --dbuser='wpuser' --dbpass='password' --dbhost='localhost' --dbprefix='wp_'
wp core install --url='http://example.com' --title='Blog Title' --admin_user='adminuser' --admin_password='password' --admin_email='[email protected]'
Create new starter theme with _Uderscores
Automattic/_s
Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, Word…
Underscores
A Starter Theme for WordPress
An alternative to _S
Sage | WordPress Starter Theme | Roots
WordPress starter theme with a modern front-end development workflow. Sage includes Bootstrap, Webpack as a build tool, and Browsersync for live reloading.
Theme info in CSS
Step 1: Firstly go to wp-content/themes/
folder. And then rename your theme folder to whatever you want.
Step 2: Open your theme folder and open style.css
file. In top part of style.css you will see theme name. Rename it and save changes.
Step 3: Go to Wp-admin/appearance/themes
and activate your theme under new name.
Automating with WP-Gulp
ahmadawais/WPGulp
An advanced & extensively documented Gulp WordPress workflow. Kick start a build-workflow for your WordPress plugins and themes with Gulp. – ahmadawais/WPGulp