Customizing wp-config.php

Starting in WordPress Auto-Provision Module v3.0, the wp-config.php file is configured from within the WordPress configuration settings in WHMCS under Addons -> WordPress Auto-Provision. For versions of the module below v3.0, please use the template wpconfig.php file (found in the default package folder) and place a copy of this file within each package folder. 

When configuring the wp-config.php file settings, only add options not pre-defined in the main script listed below. For more details on configuring the wp-config.php options, please go to http://codex.wordpress.org/Editing_wp-config.php.

The following values are pre-defined in the main provisioning script and cannot be modified:

define('DB_NAME');

define('DB_USER');

define('DB_PASSWORD');

define('DB_HOST');

define('AUTH_KEY');

define('SECURE_AUTH_KEY');

define('LOGGED_IN_KEY');

define('NONCE_KEY');

define('AUTH_SALT');

define('SECURE_AUTH_SALT');

define('LOGGED_IN_SALT');

define('NONCE_SALT');

define('WPLANG'); (This value pulls from the option set in your module configuration settings)

define('WP_DEBUG');

$table_prefix = '';


Additionally, as of WordPress Auto-Provision Module v3.0.15 the following variables can be used to replace data with values generated in the module:

%tempurl% = WordPress Temporary URL
%customurl% = Custom URL as specified in your WordPress configuration settings.
%domainurl% = The domain assigned to the client.
%autourl% = The URL assigned to WordPress (any of the above) as specified in your WordPress configuration settings.
%urlprefix%
 = The URL prefix assigned to the WordPress site (e.g. either http:// or https://).
%serverip% = The client's server IP address.
%username% = The client's username for the hosting server.
%password% = 
The client's password for the hosting server.
%apppw% = 
The client's password for the WordPress account being provisioned.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Specifying Language Files

The default language that WordPress is provisioned for is English (en_US). You have the option of...

Product Module Commands

Once a client has purchased a WordPress hosting account, the following module commands will be...

Product Addon Module Commands

If a WordPress site is provisioned using a product addon, there are no module commands available...

RegEx Pattern Matching

As of WordPress Auto-Provision Module version 2.4, a new RegEx pattern matching feature allows...

WordPress Single Sign-On (SSO)

As of WordPress Auto-Provision Module version 2.3, WHMCS administrators can now login to the web...