Computer NetworksNETWORKS

WordPress issues after IP address change

Here are the commands from the video
Login to mysql and query the database to find the old siteurl:
The values for DB_USER, DB_HOST, and DB_NAME can be found in your wp-config.php
mysql -u DB_USER -p -h DB_HOST
use DB_NAME;
select * from wp_options where option_name like “%siteurl%”;
exit;

Download the tool:
wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar

Change the permissions
chmod +x wp-cli.phar

Run the tool specifying the old IP (or site name) and the new IP (or site name)
sudo -u apache php wp-cli.phar search-replace ‘old_IP’ ‘new_IP’ –path=/var/www/html –skip-columns=guid

source

ip address

Alice AUSTIN

Alice AUSTIN is studying Cisco Systems Engineering. He has passion with both hardware and software and writes articles and reviews for many IT websites.