Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Where do I define USER_COOKIE, PASS_COOKIE, AUTH_COOKIE, SECURE_AUTH_COOKIE, LOG


joseffb
Member

@joseffb

I’m not able to get WPMU 2.8.4 and BP 1 to SSO at all. I tried and can’t get it to work any help would be grateful.

I have the multi-domain plugin setup and also have the bbpress-integrate plugin in the “plugins” directory.

WP-Config.php

/**

* The base configurations of the WordPress.

*

**************************************************************************

* Do not try to create this file manually. Read the README.txt and run the

* web installer.

**************************************************************************

*

* This file has the following configurations: MySQL settings, Table Prefix,

* Secret Keys, WordPress Language, and ABSPATH.

*

* This file is used by the wp-config.php creation script during the

* installation.

*

* @package WordPress

*/

// ** MySQL settings – You can get this info from your web host ** //

/** The name of the database for WordPress */

Removed for Security

/** The Database Collate type. Don’t change this if in doubt. */

define(‘DB_COLLATE’, ”);

define(‘VHOST’, ‘yes’);

$base = ‘/’;

define(‘DOMAIN_CURRENT_SITE’, ‘thisissite1.com’ );

define(‘PATH_CURRENT_SITE’, ‘/’ );

define(‘SITE_ID_CURRENT_SITE’, 1);

define(‘BLOGID_CURRENT_SITE’, ‘1’ );

/**#@+

* Authentication Unique Keys.

*

* Change these to different unique phrases!

* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service}

*

* @since 2.6.0

*/

define( ‘NONCE_KEY’, ‘&^YU8obCOZmNz)#udi$ghSLF’ );

define( ‘AUTH_KEY’, ‘t0d87hpJOq!DBA#gp7VZ#dez’ );

define( ‘AUTH_SALT’, ‘CdaJ42PU3iCsjehU(*h8V#6k’ );

define( ‘LOGGED_IN_KEY’, ‘LihT(0OQBtTkw82^c0jmT4ub’ );

define( ‘LOGGED_IN_SALT’, ‘NinP#50Uq(KU#LQ5h64on9v*’ );

define( ‘SECURE_AUTH_KEY’, ‘UYi3SxHzUXE48E!vvggXv&s8’ );

define( ‘SECURE_AUTH_SALT’, ‘c@p6I*b*hvcr8F^SMfr7JG^!’ );

/**bbpress integration **/

define(‘USER_COOKIE’, ‘wordpressuser’);

define(‘PASS_COOKIE’, ‘wordpresspass’);

define(‘COOKIEPATH’, $base);

define(‘SITECOOKIEPATH’, ‘/’);

define(‘COOKIE_DOMAIN’, ‘.thisissite2.com’); // same as bbPress

/**#@-*/

/**

* WordPress Database Table prefix.

*

* You can have multiple installations in one database if you give each a unique

* prefix. Only numbers, letters, and underscores please!

*/

$table_prefix = ‘wp_’;

/**

* WordPress Localized Language, defaults to English.

*

* Change this to localize WordPress. A corresponding MO file for the chosen

* language must be installed to wp-content/languages. For example, install

* de.mo to wp-content/languages and set WPLANG to ‘de’ to enable German

* language support.

*/

define (‘WPLANG’, ”);

// double check $base

if( $base == ‘BASE’ )

die( ‘Problem in wp-config.php – $base is set to BASE when it should be the path like “/” or “/blogs/”! Please fix it!’ );

// uncomment this to enable wp-content/sunrise.php support

//define( ‘SUNRISE’, ‘on’ );

// uncomment to move wp-content/blogs.dir to another relative path

// remember to change WP_CONTENT too.

// define( “UPLOADBLOGSDIR”, “fileserver” );

// If VHOST is ‘yes’ uncomment and set this to a URL to redirect if a blog does not exist or is a 404 on the main blog. (Useful if signup is disabled)

// For example, the browser will redirect to http://examples.com/ for the following: define( ‘NOBLOGREDIRECT’, ‘http://example.com/’ );

// Set this value to %siteurl% to redirect to the root of the site

// define( ‘NOBLOGREDIRECT’, ” );

// On a directory based install you must use the theme 404 handler.

// Location of mu-plugins

// define( ‘WPMU_PLUGIN_DIR’, ” );

// define( ‘WPMU_PLUGIN_URL’, ” );

// define( ‘MUPLUGINDIR’, ‘wp-content/mu-plugins’ );

// Uncomment to disable the site admin bar

//define( ‘NOADMINBAR’, 1 );

define( “WP_USE_MULTIPLE_DB”, false );

/* That’s all, stop editing! Happy blogging. */

/** WordPress absolute path to the WordPress directory. */

if ( !defined(‘ABSPATH’) )

define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

/** Sets up WordPress vars and included files. */

require_once(ABSPATH . ‘wp-settings.php’);

/**bbpress integration **/


bb-config.php

<?php

/**

* The base configurations of bbPress.

*

* This file has the following configurations: MySQL settings, Table Prefix,

* Secret Keys and bbPress Language. You can get the MySQL settings from your

* web host.

*

* This file is used by the installer during installation.

*

* @package bbPress

*/

// ** MySQL settings – You can get this info from your web host ** //

/** The name of the database for bbPress */

Removed for security

/**#@+

* Authentication Unique Keys.

*

* Change these to different unique phrases!

* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/bbpress/ WordPress.org secret-key service}

*

* Change these to different unique phrases!

* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service}

*

* @since 2.6.0

*/

define( ‘BB_NONCE_KEY’, ‘&^YU8obCOZmNz)#udi$ghSLF’ );

define( ‘BB_AUTH_KEY’, ‘t0d87hpJOq!DBA#gp7VZ#dez’ );

define( ‘BB_AUTH_SALT’, ‘CdaJ42PU3iCsjehU(*h8V#6k’ );

define( ‘BB_LOGGED_IN_KEY’, ‘LihT(0OQBtTkw82^c0jmT4ub’ );

define( ‘BB_LOGGED_IN_SALT’, ‘NinP#50Uq(KU#LQ5h64on9v*’ );

define( ‘BB_SECURE_AUTH_KEY’, ‘UYi3SxHzUXE48E!vvggXv&s8’ );

define( ‘BB_SECURE_AUTH_SALT’, ‘c@p6I*b*hvcr8F^SMfr7JG^!’ );

$bb->wp_table_prefix = ‘wp_’;

$bb->wp_home = ‘http://thisissite2.com/&#8217;;

$bb->wp_siteurl = ‘http://thisissite2.com/&#8217;;

// Integrating with mu

$bb->cookiepath = ‘/’;

$bb->cookiedomain = ‘.thisissite2.com’; // leading . allows subdomain sharing

$bb->usercookie = ‘wordpressuser’; // WPMU doesn’t hash cookies

$bb->passcookie = ‘wordpresspass’; // WPMU doesn’t hash cookies

// Load WordPress so we can use the same templates.

define(‘WP_BB’, ‘true’);

require_once(‘/home/content/82/4558682/html/wp-blog-header.php’);

/**#@-*/

/**

* bbPress Database Table prefix.

*

* You can have multiple installations in one database if you give each a unique

* prefix. Only numbers, letters, and underscores please!

*/

$bb_table_prefix = ‘bb_’;

/**

* bbPress Localized Language, defaults to English.

*

* Change this to localize bbPress. A corresponding MO file for the chosen

* language must be installed to a directory called “my-languages” in the root

* directory of bbPress. For example, install de.mo to “my-languages” and set

* BB_LANG to ‘de’ to enable German language support.

*/

define( ‘BB_LANG’, ” );

Skip to toolbar