• Could someone please take a look at this code im putting in for my config file. im trying to create multiple sites so have edited the code as told but its not seeming to work. im not sure if my config file is right at all… my site has been working for years without the config file, i only put it in to get multiple sites

    <?php
    define('WP_MEMORY_LIMIT', '64M');
    /**
     * The base configurations of the WordPress.
     *
     * This file has the following configurations: MySQL settings, Table Prefix,
     * Secret Keys, WordPress Language, and ABSPATH. You can find more information
     * by visiting {@link http://codex.ww.wp.xz.cn/Editing_wp-config.php Editing
     * wp-config.php} Codex page. You can get the MySQL settings from your web host.
     *
     * This file is used by the wp-config.php creation script during the
     * installation. You don't have to use the web site, you can just copy this file
     * to "wp-config.php" and fill in the values.
     *
     * @package WordPress
     */
    
    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'rebeccak_creativenomad');
    
    /** MySQL database username */
    define('DB_USER', 'databasename');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'password');
    
    /** MySQL hostname */
    define( 'DB_HOST', 'localhost' );
    
    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');
    
    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');
    
    /**#@+
     * Authentication Unique Keys and Salts.
     *
     * Change these to different unique phrases!
     * You can generate these using the {@link https://api.ww.wp.xz.cn/secret-key/1.1/salt/ ww.wp.xz.cn secret-key service}
     * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
     *
     * @since 2.6.0
     */
    define('AUTH_KEY',         'Nk{2)-C;N$[M^)u7PJd;{.VS&hV$#{o_BLpHdheOYCf.lPKCwy]7|NdqnR8Kbx03');
    define('SECURE_AUTH_KEY',  'hXNT PrC@p!V?O[AIgH1]Nm.>Chyu3iml6en(Ck8fnk ~V!,kA>qcee?pqU}3.ux');
    define('LOGGED_IN_KEY',    'mGB%V4eiUg0,*w[qF-4!&t%1pGycZ-_wN//O2m@Jq)p!@Ow}@(NtO4rh5K;WV,d&');
    define('NONCE_KEY',        'oT}>QnN{$E4B/f-i7kJNNqp5_$LFx~KS76+_E-U_f|(,S|An{Qb+j]r%)kop;QJ-');
    define('AUTH_SALT',        '_3lTFOF{78-t-&e&Ge 8Kj|9!nQ{C-<2Q+QFxM[EhV-+U+URof_IErgOA!1^%{>)');
    define('SECURE_AUTH_SALT', 'AGwg9WXDB !t:Dhis:vR$n&QH^}o*ylB|6EUE1{M((IMm|$${z{-|,?a54Z-G/|+');
    define('LOGGED_IN_SALT',   '-#Q+;uo{R^!)A2<code>j]Wd#]wUI]q)-L/E-j.g^Zah87ahvw:HO|=exXM0^d!</code>jw5=(');
    define('NONCE_SALT', 'Nb88o+$T5gNB:J}(N->)]D./G!Cwz#-i>Vptlq]]]cc9m<?; %ZTqe0*_DS@(P');
    
    /**#@-*/
    
    /**
     * 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_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
     * language support.
     */
    define('WPLANG', '');
    
    /**
     * For developers: WordPress debugging mode.
     *
     * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     */
    define('WP_DEBUG', false);
    
    define('WP_ALLOW_MULTISITE' true);
    
    /* That's all, stop editing! Happy blogging. */
    
    /** 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');
Viewing 3 replies - 1 through 3 (of 3 total)
  • Keith

    (@keithdriscoll)

    Your missing a comma in define('WP_ALLOW_MULTISITE' true);

    Change it to define('WP_ALLOW_MULTISITE', true);

    Thank You bro for uploading the whole procedure. This whole procedure help me lot.

    Thread Starter creative nomad

    (@creative-nomad)

    Thanks so much, this is still not working for me 🙁 im wondering if my wordpress is reading my config file. Do I need to delete the config sample? is there a way to test it? I was using wordpress for years with no config file and it as still working

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘my config file’ is closed to new replies.