- weblog of Mizanur Rahman
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.
Hisham777
April 25th, 2007 at 8:32 am
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
Dr-Hamza’s Space
July 13th, 2007 at 10:05 pm
[...] 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 [...]
Dr-Hamza’s Space
July 13th, 2007 at 10:05 pm
[...] 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 [...]
TRIVUz
November 28th, 2007 at 1:33 pm
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…
Diego Alisson
January 5th, 2008 at 3:58 pm
hi, i’m having problems with this framework, I’m using the IIS/6.0 Server.
Somebody know how can i config that correctly?
Sparky
February 24th, 2008 at 3:26 pm
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
Ketan Thaker
April 12th, 2008 at 2:20 pm
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.
Sheridon
April 17th, 2008 at 2:00 am
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.
asraful
July 2nd, 2008 at 6:49 am
hi Mizanur Rahman via,
i want to run codeigniter on IIS.But cant.please help me
asraful
sailesh.g
July 23rd, 2008 at 8:36 am
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
php developer
August 13th, 2008 at 9:30 am
Hello everyone,
codeigniter is awesome n am also goin to use it in my next project.
Thanks
Irfan Ahmed
Gmcosta
August 15th, 2008 at 4:04 pm
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.