
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 assume that your base URL is set like this:
$config['base_url'] = “http://localhost/codeigniter/”;
Note:
Where code igniter is the folder name where you saved the downloaded files.
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'] = “root”; $db['default']['password'] = “*****”; $db['default']['database'] = “codeigniterDb”; $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.







2 Comments until now.
Thanks for the post. I am facing problem with the project developed in CI. This runs well in windows but when i shift it in linux it does not work, precisely the links does not work. Home page is coming but when i click other link it shows 404 error. any idea how to fix it?
It should work well in linux. I’m using linux for a while now and its working well. Did you follow the steps?
I suggest you do it again and if its still does not work throw me a mail.
Comment!