As I'm new to Linux and WPCLI, I moved a site from one VPS to another but URL stayed the same and PHPmyadmin doesn't work so as of the moment I can't change the site URL from PHPmyadmin.
When I try to navigate to the site from the browser (after setting up a database, changing wp-config.php accordingly, uploading site dir with right permissions etc) I get a 500 error.
I ten went did sudo tail /var/log/apache2/error.log
and saw an error regarding that site, but with the old url (so somewhere the url wasn't changed and this seems to be the source of the problem). This is the error:
[Sun May 07 15:20:21.881125 2017] [:error] [pid 19110] [client IP_ADDRESS:56239] PHP Fatal error:
Unknown: Failed opening required '/var/www/html/contentperhour.com/wordfence-waf.php' (include_path='.:/usr/share/php') in Unknown on line 0
I thought it's Wordfence related so I tried to remove it:
sudo wp plugin deactivate wordfence
sudo wp plugin uninstall wordfence
Removing Wordfence and restarting the server didn't help.
How could I change the URL of the site from outside the site or outside PHPmyadmin?