Codeigniter is one of the most popular and lightweight PHP framework. it requires almost zero configuration. In this tutorial, I am going to download and install Codeigniter in xampp.

We will explain how to install Codeigniter on xampp server. so you can follow the next step to install or configure Codeigniter.

Step 1: Download the latest version of CodeIgniter

You can download the latest version of CodeIgniter from the official Codeigniter website.

Step 2: Unzip CodeIgniter zip file 

Step 2: unzip the file in your "xampp / htdocs / your_project" directory.

Step 3: Set the Baseurl configuration.

Now, open the application / config / config.php file and configure base_url.

$config['base_url'] = ‘http://localhost/your_project’;

Step 4: Database Configuration.

Add the database configuration then you can do it in the application/config/database.php file.


$db['default'] = array(
    'dsn' => '',
    'hostname' => 'localhost',
    'username' => 'root',
    'password' => '',
    'database' => 'mydb_name',
    'dbdriver' => 'mysqli',
    'dbprefix' => '',
    'pconnect' => FALSE,
    'db_debug' => (ENVIRONMENT !== 'production'),
    'cache_on' => FALSE,
    'cachedir' => '',
    'char_set' => 'utf8',
    'dbcollat' => 'utf8_general_ci',
    'swap_pre' => '',
    'encrypt' => FALSE,
    'compress' => FALSE,
    'stricton' => FALSE,
    'failover' => array(),
    'save_queries' => TRUE