How to install CodeIgniter on Windows

CodeIgniter

CodeIgniter is a very mature PHP open source free web framework. It's developed in 2006 and It has a huge reputation among web programmers. CodeIgniter became popular because It's light weight, Because of small in size it adds a very little overhead compare to other PHP frameworks, and because its small in size its fast comparing other frameworks out there.

Because CodeIgniter is very mature framework it's documentation and support is huge in the developer community. If you got a problem with something in CodeIgniter you can easily search it on Internet and find a answer to it very easily.

Enough !!!


You didn't visit this blog to learn about What's CodeIgniter right ? Yes, You want to know how to install it on your Windows OS. Let's begin...

Additional Softwares you need to work with CodeIgniter


XAMPP 

XAMPP is a software stack that we need to install to run a web server in our local machine.
XAMPP is a multi-platform software stack that can use it on OSX, Linux or Windows.
XAMPP contains Apache web server, PHP, MySQL and Perl.
installing XAMPP is really easy. Just install it on default location location ( C:\xampp\ ) on Windows computer.

NetBeans IDE

for this tutorial I'm going to use popular free IDE NetBeans, Feel free to use your favourite PHP supported IDE. When you are downloading Netbeans make sure that you download the version that support PHP. I always recommend to download full version that support all the programming languages.


Finally CodeIgniter

after installing the both XAMPP software stack and Netbeans. Go the CodeIgnter web page and download the latest version available. Its under 2MB download.

CodeIgniter Web Site

After downloading the CodeIgniter extract it and Copy the extracted folder to the (C:\xampp\htdocs\).
htdocs folder is the web server's (Apache) root folder. All your local web server files should live their. Otherwise web server can't see those files. 

For this tutorial I've renamed my CodeIgniter folder as 'poorna'. Obviously you've to put your website's name here.

CodeIgniter Files inside the htdocs
Now open the NetBeans and create a new project using the File menu.
Select PHP and PHP project with existing sources, Then Click next.
Give the path to your CodeIgniter folder living in the htdocs in Source Folder section.

and tick Put Netbeans metadata in a separate directory, and click Finish





Now you'll see your CodeIgniter project open from Netbeans.

to check whether CodeIgniter is working properly, Open the XAMPP control panel and run Apache server

Running Apache server and MySQL on XAMPP

Then switch back again to Netbeans and choose your favourite browser on Netbeans tool bar ( A logo with globe ). Default it run on Internet Explorer :D ... You know no body wants to run things on Internet Explorer right. So I chose chrome.

If it ask to Install Netbeans extension to support Chrome. Install extension in the Chrome.

Installing Netbeans Connector extension on Chrome

After installing that click "Run" button on Netbeans. If everything works perfectly. You'll see a screen like below



This means CodeIgniter installed successfully !!!

Now it's time to build your web application on CodeIgniter...

Good Luck, Happy Coding :)

Comments

Post a Comment

Popular posts from this blog

SimpleAsyncTaskExecutor and ThreadPoolTaskExecutor in Spring

Hackintosh OS X 10.9 Mavericks dual boot with Windows 10 Pro