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. Prime Mover plugin is fully compatible with Bitnami. Make sure to update to the latest version of the Prime Mover plugin.

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

Required constants to be set

3 required constants need 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 need some more details.

Default WP_HOME / WP_SITEURL configuration

By default – these constant values in Bitnami WordPress wp-config.php look 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 an error with a suggestion to edit these values correctly if it’s incorrect.

So make sure you do not put a 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 exist. 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 hostname 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 any more 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.

Last updated: May 25, 2024

Was this article helpful?
YesNo