Overview
When moving WordPress websites either between hosting environments (eg from a different provider to Conetix) or between URL’s (eg if your business name and domain name have changed), there are a number of changes required to be made to your WordPress database for this to work as expected.
We can use the latest feature of the WP Toolkit to access the WordPress CLI to run a search and replace on the WordPress database to update these requirements for you.
If you don’t make these changes, you may see errors relating to open_basedir restriction in your error logs .
Instructions
- Login into Plesk via the Conetix Control Panel.
- Go to the WordPress site you need to run the updates for.
- Within the WP Toolkit, select the WP-CLI option:

- Type
searchinto the command bar and selectsearch-replaceas the option:
(This will display the help for the search-replace command) - If you’ve moved hosting environments (eg, cPanel to Conetix), you will need to look for any options targeting the old path. For example:
--dry-run /home/username/public_html /var/www/vhosts/yourwebsitepath - Click the Run button to start:

- This should give a list of tables in your WordPress database and how many entries may need to be changed:

(--dry-runmeans it won’t actually make the changes, just list where they would be made) - If you’ve moved domains / URL’s, you will need to search for the old URL to replace with the new URL. For example:
--dry-run --skip-columns=guid https://oldwebsite.com https://newwebsite.com - Click the Run button to start:

- Once you’re confident the required changes will be applicable, you can remove the
--dry-runto make the actual changes to the database (make sure you have a backup first!). - After the changes are made, load the website and ensure you can still login. Check your website error logs for any other error messages as well.
