KB Knowledge Base
How To Master WordPress With wp-config.php

Article By sabinshrestha


wp-config.php WordPress VPS - BIP media

Introduction to wp-config.php

The WordPress wp-config.php file in the root directory is the most important file for WordPress configuration. In this file we configure the database with default setting so it's enough for a basic WordPress installation. There are lots of other cool things like improving security, performance and functionality. You can manually rename wp-config.-sample.php to wp-config.php or use the installation wizard to create one.

NOTE: The contents of the wp-config-sample.php file are in a very specific order. The order matters. If you already have a config file, rearranging the contents of the file may create errors on your blog. Since Version 2.6, config can be moved to the directory directly above the WordPress application directory.

Database Credentials:

This should be after the PHP comment near the top of the file:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');
/** MySQL database username */
define('DB_USER', 'username_here');
/** MySQL database password */
define('DB_PASSWORD', 'password_here');
/** 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', '');

Tags: , , , , , , , , ,

Spin up a VPS server in no time flat

Simple setup. Full root access. Straightforward pricing.


Leave a Reply