Ravi Sagar | Home | Blog

Mastering Wordpress

Table of Contents

1 Install Wordpress cli command

Instructions are mentioned here: https://wp-cli.org/

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp

Check if it was installed successfully or not.

wp --info

2 Update wordpress using wp-cli

wp core update

3 Update the Wordpress Address and Site Address

I have some problem with the letsencrypt certificate, it is installed but the site still says that it is not secure so I believe we have to update the Wordpress and Site Address in the Settings but for me these are greyed out because these are hard coded in the wp-config.php

define( 'WP_HOME', 'https://www.website.com' );
define( 'WP_SITEURL', 'https://www.website.com' );

4 Reset wordpress user's password

update wp_users set user_pass = md5('PASSWORD') where user_login='USERNAME';