Tuesday 22 May 2018

Running WordPress locally on Linux or mac with WP CLI


There are a multitude of ways to run WordPress locally. One of my favorite and simplest ways is to use WP CLI. The WP CLI provides command line tools for WordPress. In a previous article, I covered how to run WordPress using just PHP and MySQL, no Apache or Nginx. In this article I’m going to cover how to do the same but with WP CLI.
With this method, you don’t need to install anything like MAMP, XAMPP and skip can skip the complexity of running Docker or Vagrant when you don’t need them. You don’t even need Apache or Nginx. It’s a super quick and easy way to run WordPress on Linux or mac and all you need is PHP, MySQL and the WP CLI.
Using the WP CLI adds a level of abstraction and allows you to not only download, setup and serve WordPress but also do the config and install.
If you want to go deeper and learn more about using the WordPress command line, check out our eBook
Install PHP & MySQL
This is going to be different for different systems so probably best that you look that up. You’ll need to know your MySQL for a later stage, so make a note of that.
To check what you already have installed:
Here is my personal cheatsheet for installing
Source: https://managewp.org/articles/17457/running-wordpress-locally-on-linux-or-mac-with-wp-cli



source https://williechiu40.wordpress.com/2018/05/22/running-wordpress-locally-on-linux-or-mac-with-wp-cli/

No comments:

Post a Comment