CodeIgniter Installation

Saturday 5 September 2015



Hello friends, now a days PHP is very popular for Web Application Development. Also there are some PHP frameworks and CMS (i.e Content Management System), they are very popular and mostly used for Web Application Development. Before using any PHP frameworks or any CMS, we need to install and configure properly, other wise it may not work properly. Here configure means to arrange or fit the server details, database details and many more details with the application (i.e the framework).

CodeIgniter is one of most used and popular framework, written in PHP. Before using it we need to install and then we need to configure with our server, database, ect. So in this post we are going to learn the installation of CodeIgniter framework.

Software Requirement for CodeIgniter :

Before using CodeIgniter we should make sure that, we have following software in our system,

  • XAMPP or WAMP or LAMP 
or
  • Apache (HTTP) + MySql 
Steps to install CodeIgniter :

Following are steps to install CodeIgniter framework,

Step 1: Downloading the CodeIgniter 

Step 2 : Configure the CodeIgniter

Step 1 : (Downloading the CodeIgniter)

In this step we will download the CodeIgniter from its official web site i.e codeigniter.com or ellislab.com

So go to the official website (codeigniter.com), and click on download link as follows,



After clicking the Download link, you will redirect to the Download page, there you can download the any version of CodeIgniter i.e 2.X or 3.X, as shown below,






After downloading you will get a ZIP folder in your download location, now you need to extract that ZIP folder, as follows,



Now you need to  move that extracted folder to your htdoc folder present in XAMPP folder (this is for XAMPP user and LAMP or WAMP user should move this extracted folder to their corresponding webroot folder). Now this is your CodeIgniter project or application, so you need to change the folder default name to your project name or application name. For example in this post we will give our application name as CodeIgniterProject. Now open the project or the folder you will get following project or folder structure,



Step 2 : (Configure the CodeIgniter)

In this step we will do the configuration settings for the CodeIgniter project or application. Now after doing the above step just open the application/config folder, there you will find config.php and database.php, as follows,




Now open the config.php on some text editor, and configure the following things,





In this config.php file you can do some more configuration, according to your requirement.

Now open the database.php, there do the following changes related to your database,




These are the basic mandatory configurations, that you need to configure before starting your project or application development. And there are some other optional configuration are there which we will learn later at the time of some application development like login form, registration form, CRUD application, ect.

No comments:

Post a Comment

 
About Contact Career Advertise Job Support Online Training Acardemic Projects Internship
Copyright © 2016. [ info ].
Design by Herdiansyah Hamzah. & Distributed by Free Blogger Templates
Creative Commons License