Title: WP-CONFIG.PHP
Last modified: August 19, 2016

---

# WP-CONFIG.PHP

 *  [joshmedrano2008](https://wordpress.org/support/users/joshmedrano2008/)
 * (@joshmedrano2008)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wp-configphp-7/)
 * The wp-config-sample.php file in the version WP-2.6 has no security codes so 
   i copied some of the commands in the instructions on how to manually create the
   file. i save it correctly but i don’t have an idea where the security code line
   should be. I also didn’t delete the quotation marks. and I didnt use the advanced
   instructions. Help me please. Thanks=D

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

 *  Thread Starter [joshmedrano2008](https://wordpress.org/support/users/joshmedrano2008/)
 * (@joshmedrano2008)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wp-configphp-7/#post-842098)
 * By the way, I use free hosting from 000webhost.com. I have the right Database
   names, hosts, and passwords so i still needhelp on this one
 *  [Evita](https://wordpress.org/support/users/evita/)
 * (@evita)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wp-configphp-7/#post-842102)
 * A copy from mine:
 *     ```
       <?php
       // ** MySQL settings ** //
       define('DB_NAME', 'xxxxx');    // The name of the database
       define('DB_USER', 'xxxxx');     // Your MySQL username
       define('DB_PASSWORD', 'xxxxx'); // ...and password
       define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value
       define('DB_CHARSET', 'utf8');
       define('DB_COLLATE', '');
   
       // Change SECRET_KEY to a unique phrase.  You won't have to remember it later,
       // so make it long and complicated.  You can visit https://www.grc.com/passwords.htm
       // to get a phrase generated for you, or just make something up.
       define('SECRET_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
   
       // You can have multiple installations in one database if you give each a unique prefix
       $table_prefix  = 'wp_';   // Only numbers, letters, and underscores please!
   
       // 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', '');
   
       /* That's all, stop editing! Happy blogging. */
   
       define('ABSPATH', dirname(__FILE__).'/');
       require_once(ABSPATH.'wp-settings.php');
       ?>
       ```
   
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wp-configphp-7/#post-842112)
 * This is the 2.6 config file sample:
 *     ```
       <?php
       // ** MySQL settings ** //
       define('DB_NAME', 'putyourdbnamehere');    // The name of the database
       define('DB_USER', 'usernamehere');     // Your MySQL username
       define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
       define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value
       define('DB_CHARSET', 'utf8');
       define('DB_COLLATE', '');
   
       // Change each KEY to a different unique phrase.  You won't have to remember the phrases later,
       // so make them long and complicated.  You can visit http://api.wordpress.org/secret-key/1.1/
       // to get keys generated for you, or just make something up.  Each key should have a different phrase.
       define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
       define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
       define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
   
       // You can have multiple installations in one database if you give each a unique prefix
       $table_prefix  = 'wp_';   // Only numbers, letters, and underscores please!
   
       // 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', '');
   
       /* That's all, stop editing! Happy blogging. */
   
       if ( !defined('ABSPATH') )
       	define('ABSPATH', dirname(__FILE__) . '/');
       require_once(ABSPATH . 'wp-settings.php');
       ?>
       ```
   

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

The topic ‘WP-CONFIG.PHP’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 3 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/wp-configphp-7/#post-842112)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
