Locate and edit Concrete5 configuration file

Updated on Dec 10, 2015

The configuration file of all scripts is a place to find valuable details for your website. Such are the database details, domain name and much more. Each application has different ways of operating and this means that the information that you will be able to find in the configuration file will be different as well.

In Concrete5, you have one main configuration file that contains the database details for your website. What you need to do is to access the folder of your Concrete5 installation on the server and then navigate to application/config/. Within this location, you will find a file called database.php.

The file in question contains the hostname of the server (set to "localhost" if your database is stored on the same server as your Concrete5 installation), the database name and the user assigned to it with a specific password, etc. This is the best place to check your database details and use them for any manual data modifications.

return array(
    'default-connection' => 'concrete',
    'connections' => array(
        'concrete' => array(
            'driver' => 'c5_pdo_mysql',
            'server' => 'localhost',
            'database' => 'example_con5',
            'username' => 'example_con5',
            'password' => 'p4ssw0rd',
            'charset' => 'utf8'

It may also come handy when generating or restoring a backup of your Concrete5 website.

On this page...

    Concrete5 Hosting

    • Free Installation
    • 24/7 Support
    • Free Domain Transfer
    • Hack-free Protection
    • Fast SSD Storage
    • Free Transfer
    • Free Cloudflare CDN
    • Immediate Activation
    View More