Kategorie: Linux

Management from the SSH WordPress WP- CLI Installation

Below a very simple and fast way through which you install the WP-CLI on the server.
What is WP-CLI?
WP-CLI is a simple tool, which allows you to operate on a script WordPress using the command line in Terminal (SSH). With it, you can install script WordPress, update files, install / uninstall plugins / themes, display information about the version of HR, or even regenerate broken icon files, media (pictures) even going to the database optimization.

Installation

If you do not have it in the system Curl install it:

Debian/ Ubuntu:

apt-get install curl

Centos

yum install curl

We charge a soft command:

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar

The next step is to validate files:

php wp-cli.phar --info

We give chmod and transfer files:

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

We verify the correct command:

wp --info

We should get a result similar to the one below:

wp --info
OS:     Linux 2.6.32-openvz-042stab123.1-amd64 #1 SMP Wed March 22 15:22:33 MSK 2017 x86_64
Shell:
PHP binary:     /usr/local/bin/php
PHP version:    5.6.34
php.ini used:   /usr/local/lib/php.ini
WP-CLI root dir:        phar://wp-cli.phar
WP-CLI vendor dir:      phar://wp-cli.phar/vendor
WP_CLI phar path:       /home/admin/domains
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 1.5.1

That's all the soft we have installed 😉
In the next tutorial I will describe how to use the wp-cli. Install quickly wordpress, plug-in installation or its activation.

Linux

Udostępnij
Opublikowane przez
Linux

Recent posts

KeePass2 2.52 w Ubuntu 22.04

The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń

2 years temu

Installing Master PDF editor in Ubuntu 22.04

Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji

2 years temu

iotop - memory monitoring

Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w

2 years temu

Run multiple commands in one cron job

You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania

2 years temu

Changing the exif data of a photo in the Linux terminal

Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.

2 years temu

Installing Rocket.Chat Server on Rocky Linux 8

The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy

2 years temu