wp-config.php file contains all of the major settings that WordPress will use during execution. There are differences between the settings in the
wp-config.php file and those that are set in the database. The major difference is that you have to manually change the settings in the
wp-config.php file and the ones in the database you don’t always have to manually change.
wp-config.php requires user proficiency in FTP and editing PHP files to edit correctly. If you do not know what you are doing, then there are plenty of resources to teach you or you can get someone else to do it. The instructions on editing and adding settings will be basic and the file consists of mostly string and boolean values.
The article will be split into two sections, on this blog: settings that are set when WordPress is installed and settings which have to be manually added and changed by the user. These settings will be split up into multiple parts, the first one being the introduction and will be combined (excluding this paragraph), when all parts are finished.
These settings you can set during the installation and not worry about them, unless you move your WordPress folder to a new host. WordPress will write these settings for you, so you don’t actually have to create the file, but if you do, then WordPress will use the settings during installation and during execution. You can find all of these settings in wp-config-sample.php file and can copy and rename to fill out the information, if you desire.
The settings covered in WordPress 2.5:
- Database Settings
- Base WordPress Folder
- Database Table Prefix
- Secret Key
These settings are added by you, the user and will be used by WordPress in different areas, if they exist. You can mostly find these settings in wp-settings.php, but other files have other special hard coded settings that will be used. The areas covered are below.
- Plugin Directory
- Memory Limit
- Blog ID
- Language Directory
- External Cache
- List others when found
The behavior of the WordPress caching plugins has changed, as well as what the constants mean. More on the caching changes later.