Background

UPDATE: Since Prime Mover 1.8.0 – you no longer need to set constants manually when activating Prime Mover PRO. Everything is now done automatically.

This is a quick tutorial on how to configure Bitnami WordPress to use Prime Mover plugin. This assumes first time plugin activation. Note that this configuration is only done once. Once setup correctly – you don’t need to do this anymore.

Required constants to be set

There are 3 required constants that needs to be added or modified in wp-config.php:

  • WP_SITEURL
  • WP_HOME
  • PRIME_MOVER_DB_ENCRYPTION_KEY

PRIME_MOVER_DB_ENCRYPTION_KEY is easy to add. WP_SITEURL and WP_HOME needs some more details.

Default WP_HOME / WP_SITEURL configuration

By default – these constant values in Bitnami WordPress wp-config.php looks like this:

define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/' );
define( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/' );

This is not optimal because WordPress recommends removing the forward slash (“/”) at the end.

Source:

WP_SITEURL documentation

WP_HOME documentation

Recommended WP_HOME / WP_SITEURL configuration

When you first activate Prime Mover – it will check if these values are set correctly. It will then output error with a suggestion to edit these values correctly if it’s incorrect.

So make sure you do not put forward slash at the end. Prime Mover will auto-recommend correct values and it does not include any trailing slash. Prime Mover plugin cannot be activated if these are not corrected.

In Bitnami WordPress – these constants already exists. You simply need to edit them correctly. Simply follow what Prime Mover suggests to be modified and you are good to go.

Example correct suggestion if you are using static IP (from a Bitnami WordPress instance):

define( 'WP_HOME', 'http://192.168.254.121');
define( 'WP_SITEURL', 'http://192.168.254.121');

Example correct suggestion if you are using a domain name for your instance:

define( 'WP_HOME', 'http://mytestdomain.tld');
define( 'WP_SITEURL', 'http://mytestdomain.tld');

Another correct suggestion if you want to use a dynamic HTTP_HOST (e.g .if you have a changing host name instance:

define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);
define( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);

That’s it.

Re-activate Prime Mover plugin

Once all wp-config.php changes are done, you need to re-activate the plugin. The plugin should activate without anymore errors and you can start using the plugin.

If you still cannot activate the plugin after following this tutorial – please get in touch with us.

Was this article helpful?
YesNo