Configuration

Craft CMS offers con­fig­u­ra­tion options that allow you to cus­tomize its behav­ior for dif­fer­ent project needs. Con­fig­u­ra­tion set­tings are man­aged through con­fig files:

  • general.php — project-wide con­fig­u­ra­tion options
  • db.php — data­base con­fig­u­ra­tion settings
  • app.php — con­fig­u­ra­tion at the appli­ca­tion lev­el, like boot­strap­ping addi­tion­al code as modules
  • routes.php — allows you to set up cus­tom rout­ing of requests that come into the Craft CMS application.

Mul­ti-envi­ron­ment con­fig­u­ra­tions enable you to define dif­fer­ent set­tings for local devel­op­ment, stag­ing, and pro­duc­tion envi­ron­ments using val­ues in the project .env file.

Learn more about Con­fig­u­ra­tion options in Craft CMS