wordpress – wp cli tools on CentOS 7

wp cli – Manage WordPress through the command-line.

(for environment without web browser)

Install the tool:

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

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

wp –info


wp plugins list (cmd to list all wordpress plugins installed)

wp plugin desactive easy-pricing-tables (cmd to desactive plugin)

Tool update

wp cli update

expected results:

Success: Updated WP-CLI to x.x.x


WP-CLI is at the latest version.






Notes for Migration RHEL 7 to RHEL 8

Official Process of Migration from RHEL 7 to 8


Intel 64 Arch

Installation of Tool Leapp using Red Hat Subscription Manager)

wget https://access.redhat.com/sites/default/files/attachments/leapp-data3.tar.gz

At least 100MB of free space available on the boot partition

RHEL 7.6

Some important limitations

No rollback guarantied

Packages that are not a part of the Minimal (@minimal) or Base (@base) package groups might cause the upgrade process to fail.

No file system encryption supported on a system targeted.

No supported for Network Storage Mount (e.g. iSCSI, FCoE, or NFS)

Firewall will be disabled during the upgrade

The whole system must be mounted under the root file system, with the exception of /home and /boot.

  • Ex: /var, /opt, or /usr, etc… cannot be mounted on a separate partition

UEFI is currently unsupported.


Snapshot of all commands during the upgrade:

subscription-manager list --installed
subscription-manager repos --disable rhel-7-server-rpms --enable rhel-7-server-eus-rpms
subscription-manager repos --disable rhel-7-server-optional-rpms --enable rhel-7-server-eus-optional-rpms
yum versionlock clear
subscription-manager release --set 7.6
yum update; reboot;

subscription-manager repos --enable rhel-7-server-extras-rpms
yum install leapp
(begin the upgrade)
leapp preupgrade (optional)
leapp upgrade

cat /var/log/leapp/leapp-report.txt

(end of upgrade)
(After the upgrade): setenvforce 1; systemctl enable firewalld.service; systemctl start firewalld.service; cat /etc/redhat-release

Command leapp Tips:

  • leapp upgrade

use the extra parameters LEAPP_OVL_SIZE=2048MB for XFS system

where is the log of migration:



How to install Go 1.13.3 on CentOS 8/7.x

Go Language:

The Go programming language is an open source project to make programmers more productive.

Main features:

Go compiles quickly to machine code yet has the convenience of garbage collection and the power of run-time reflection

Multicore and Networked machines

Support target: windows 32/64bits, linux 32/64bits, MacOS

IDE Integration with vim, visual studio code, goland plugin (intellij) and atom

Quick Guide:

  1. Download using the url: Go 1.13.3 64bits
  2. tar xfz
    go1.13.3.linux-amd64.tar.gz -C /usr/local/
  3. Added this to your profile
    export PATH=$PATH:/usr/local/go/bin
  4. Test your installation by the command: go version
  5. Download the extra Lib:
    go get <git_repo>/<your_module>/<your_lib>

    Go Code example: (for diagnostic)

package main

import (

func main() {
mux := http.NewServeMux()
mux.HandleFunc(“/custom_debug_path/profile”, pprof.Profile)
log.Fatal(http.ListenAndServe(“:5555”, mux))

Redhat / CentOS 8.0 News and issues

RHEL 8.0 / CENTOS 8.0


Main New Features:

  • Glibc 2.28, BIND 9.11
  • Java 11, icetea-web, ant, maven, scala
  • CMake 3.11, Make 4.21, Gcc 8.2, stace 4.24, Go 1.11.5, Binutils 2.30 (optimization for IBM Z)
  • GNOME Shell, version 3.28 and GDM use Wayland as default
  • Git version changed to 2.18, Mercurial to 4.8 and subversion to 1.10
  • Python 3 support, PHP 7.2 support
  • Ruby 2.5 support, Perl 5.26 support, Node.js new support
  • Apache HTTP Server 2.4.37, nginx web server 1.14, Squid 4.4 and Varnish Cache 6.0
  • The nobody user replaces nfsnobody (user and group pair with the ID of 65534)
  • PostgreSQL 10, PostgreSQL 9.6, MySQL 8.0, and MariaDB 10.3
  • Unicode 11.0.0 support (glibc), GDB debugger version 8.2
  • DNF – YUM (v4) support modular content and Increased performance (v4 is compatible with YUM v3)
  • CUPS logs are handled by journald (the end of the logs: /var/log/cups)
  • Anaconda supports a new kernel boot parameter in RHEL 8, Using RPM interface: 4.14. (old RPM: 4.11)
  • XFS now supports shared copy-on-write data extents (Maximum XFS file system size is 1024 TiB)
  • ext4 file system now supports metadata checksum
  • webconsole with firewall interface, using webconsole by default
  • Changed IdM integration (CA, ssh, etc..) with webconsole 
  • Added support for mobile browsers in webconsole
  • Added support to manage Virtual Machine in webconsole
  • Installing RHEL from a DVD using SE and HMC is now fully supported on IBM Z
  • Anaconda supports a unified ISO in RHEL 8
  • Anaconda can install modular packages in Kickstart scripts
  • RHEL 8 supports installing from a repository on a local hard drive
  • Added new support for ARM 52-bit 
  • Added support to Intel Omni-Path Architecture (OPA)
  • Kernel now supports 5-level page tables (4PB of physical memory, 128PB of virtual address space)
  • Supports enhanced IBRS for future Intel CPUs
  • Active Directory users can now administer Identity Management
  • Identity Management packages are available as a module (yum module install idm:DL1/profile_name command)
  • Added the 64-bit ARM architecture in toolchain components

Some known issues:

Some extra limitations for Wayland with NVIDIA users:

Multi-GPU setups are not supported under Wayland.
The NVIDIA binary driver does not work under Wayland.
The xrandr utility does not work under Wayland
No clipboard manager is available
Use the X11 session for virtual environments. (Wayland inside guest virtual machines)


Set WaylandEnable=false to the file /etc/gdm/custom.conf


Special Warning for CentOS/VirtualBox users

If you are planning to install CentOS-8 in a VirtualBox guest, you should not select “Server with a GUI” (default) during the installation

Installing the VirtualBox Addons will produce an error if your version is 6.0.12/5.2.32 or lower. This is fixed with versions 6.0.14 and 5.2.34

PackageKit is unable to resolve local DNF/YUM variables

CentOS 8 in VirtualBox 5.2.32 (graphical install screen problem):

using the vbox Host key + 2 to switch to VT 2 and then vbox Host key + 6 to switch back to the graphical install screen.