Advanced WordPress Management Using WP-CLI on Alibaba Cloud ECS — Part 1

1. Install WP-CLI on your Alibaba Instance

$ chmod +x wp-cli.phar
$ sudo mv wp-cli.phar /usr/local/bin/wp

2. Prepare WordPress installation and User permissions

$ cd /var/www
$ ls -l
$ sudo chmod -R 775 /var/www/an-example-domain.com
$ ls -l

3. WordPress Core Commands

$ wp core update
$ wp core version

4. Managing WordPress Content

$ wp revisions clean -1 --post_type=post
$ wp revisions list

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Identify Frequently Dropped and Constant Offline Devices among 50,000 Devices

The Latest Features of DataWorks: How to Choose the Right Edition of DataWorks

Backup and Recovery Solution for Disk-based Data Volumes in Kubernetes Clusters

BisaGo Design Guideline

DataWorks: A Platform for Developing and Governing a Data Lake

Google Docs or Word? Which one do I choose?

The Secret behind Youku’s Success with Big Data

Building An Immutable Cloud Infrastructure On Alibaba Cloud

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

BEGINNERS GUIDE TO LARAVEL 9 LUMEN : HOW TO CREATE RESTful APIs WITH LUMEN 9

How to Setup Cloud Firestore and PHP for Development

Easily Integrate Kopokopo Payments API with Laravel 8

Automate custom PHP actions in Wordpress with WP Webhook

WP Webhooks Plugin Automations