Code Igniter is an PHP Application Development Framework – a toolkit for PHP developers. The main goal of Code Igniter is to enable developers to develop projects much faster than they could have done ( if they have started from scratch) by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries.
You can download Code Igniter from http://www.codeigniter.com/
How to Install:
1. Download the zip file from the above URL.
2. unzip the files and put them to your webserver where you want to. lets assume that you put it at codeigniter folder of your web server.
3. Open the application/config/config.php file with a text editor and set your base URL. lets asumme that your base URL is set like this:
$config['base_url'] = “http://localhost/codeigniter/”;
4. if you intend to use a database, open the application/config/database.php file with a text editor and set your database settings. Set the following variables according to your setup.
$db['default']['hostname'] = “localhost”;
$db['default']['username'] = “admin”;
$db['default']['password'] = “*****”;
$db['default']['database'] = “projectone”;
$db['default']['dbdriver'] = “mysql”;
$db['default']['dbprefix'] = “”;
$db['default']['active_r'] = TRUE;
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = “”;
5. now you are ready to run our installed piece of software. in order to run Code Igniter you have to visit the following URL in you web server.
http://localhost/codeigniter/index.php/
if your setup is correct then you will see a welcome page with heading
“Welcome to Code Igniter!”
Now you are ready to work with Code Igniter.
Note: if you try to access the Code Igniter installation like the following then you will definitely get an error message.
http://localhost/codeigniter/
http://localhost/codeigniter/index.php
By default Code Igniter follows (Search Engine Friendly (SEF) URL and for this they use segment based URL which will come to next tutorial.







i recently installed CodeIgniter and i love it.
am still finding it difficult to find good tutorials about it specially DB related Except of course for the Video on the CodeIgniter site.
I hope there will be many tutorials to come from your site
Regards
Hisham
[...] CakePHP vs. Code Igniter Code Igniter – Ignite your PHP Application Meeting CodeIgniter Code Igniter: Installation and First Run , by Mizanur Rahman igniting code with code igniter , by Hasin Hayder : CodeIgniter’s Tag at [...]
[...] CakePHP vs. Code Igniter Code Igniter – Ignite your PHP Application Meeting CodeIgniter Code Igniter: Installation and First Run , by Mizanur Rahman igniting code with code igniter , by Hasin Hayder : CodeIgniter’s Tag at [...]
Very simple and good instruction… You can write step by step guide to make a blog with code igniter. Lot’s of people looking for that i guess… (once apn a tym meh too lol)…
good job anyway…
hi, i’m having problems with this framework, I’m using the IIS/6.0 Server.
Somebody know how can i config that correctly?
Thanks so much! This is just that little bit better than the install guide on the site- I thought I’d done something wrong in a major way, but really I’d just left of the forward slash on the URL lol. Thanks, this helped a lot
Sparky
Hi,
I am PHP web developer and wanna use code igniter in my upcoming projects…
I am have download code igniter 6+ from codeigniter.com but unable to unzip the file….its saying unrecognised compression….
Please help…
Thanks in advance!!!
Ketan Thaker.
Hi Ketan,
Just found Mizanur’s blog while re-installing CI (Code Igniter). Have you tried downloading it a second or third time?
It happens sometims that the files get corrupted during download – at least it did for me.
Good luck,
Sheridon
P.S. Awesome blog and good work Mizanur.
hi Mizanur Rahman via,
i want to run codeigniter on IIS.But cant.please help me
asraful
Hi,
I am PHP web developer and wanna use code igniter in my upcoming projects…
I have downloaded code igniter from codeigniter.com but unable to configure and make useof it
Please help…
Thanks in advance!!!
sailesh.g
Hello everyone,
codeigniter is awesome n am also goin to use it in my next project.
Thanks
Irfan Ahmed
I’m new with frameworks, and searched but didnt found any info that makes me good enough to run this app.
can you give me a little help ?
I see the sucesseful message you said in the post, but I don’t know how to go ahead this page.
Thanks for now.
hello everyone,
I am new in odeignite frame work. when i insatll it in my loacal server. it not run only well come page is displaying.whenever I changed base url in config.php file
i.e
$config['base_url'] = “http://localhost/CodeIgniter/”;
but it not work.
please help me
hi,
how do i use counters in functions??
hi ,
each time when i invoke a function in the model,the previously incremented value is not coming???Resolve the problem……….
hey could u please please help me…ok i’m like totally new to the field altogether but i need to develop an application and its an emergency. you really need to address me in a “codeigniter for dummies” kinda way. what is my web server. where do i find a folder like that and how do i put the code igniter unzipped folder into it… as in where? i obviously havent done the set up right because im, not geting the welcome page