How to Install CodeIgniter in Xampp and Wamp

Hello Readers,

I would like to guide about installing CodeIgniter and how to display basic “Hello World!” message.

First step is to Download CodeIgniter recent version from the official website. –

You will get a zip file. Extract the zip file into a new folder and name it as you wish, lets say exercise.

Then move the exercise folder into the local server. If you use xampp, move the exercise folder into xampp/htdocs/
and if you are using wampp, move it to wampp/www/.

That makes the installation part over.


Now let me explain the structure of the CodeIgniter. You can see the three folders named application,system,user_guide. Application folder contains most of our project files. In my previous post, I mentioned CodeIgniter follows MVC pattern. How it actually does that is, it seperates the files in three different folders.

In Application folder,
Controller – contains the Controlling operations of Project
Model – contains the database operations
View – contains the HTML parts.

We can pass the data from Controller to Model and vice versa.

We can pass the data to be displayed into the View from Controller.

Working on CodeIgniter:

After the successful installation, explore to exercise/application/config/config.php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

| Base Site URL
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
| If this is not set then CodeIgniter will guess the protocol, domain and
| path to your installation.
$config['base_url']	= '';


Change the $config[‘base_url’] = ‘http://localhost/exercise’; or the folder name you have chosen earlier. Then open your browser and enter http://localhost/exercise, You can see a welcome message on the screen.

Read my next post about, Database Connectivity in CodeIgniter.

Thanks for reading.

Follow me


Web Developer at Energy Alternatives India
I'm interested in developing Web applications andkeen on learning new technologies.

View Nagarajan's Profile
Follow me

Latest posts by Nagarajan (see all)

  1. Brian
    • Nagarajan
  2. Allan
  3. Hector GE

Leave a Reply

Your email address will not be published. Required fields are marked *