Setup Codeigniter, Netbeans and XAMPP in Windows

This tutorial will show you how to configure Netbeans, Codeigniter, XAMPP together in Windows environment so that it would be easier environment to write PHP code on Netbeans editor without thinking much about the programming syntax error which is occurred most of the time when we write code in a notepad. It would be easier to run the Codeigniter application in browser when we use an IDE like Netbeans; we simply do right click on the project and click on Run to run the application on browser. We can also choose the preferred browser from the Browser Options in Netbeans.

Prerequisites

Netbeans 8.1
XAMPP in Windows
Codeigniter 3.1.0

Installing Netbeans

Download the Netbeans IDE from the link https://netbeans.org/downloads and install it in Windows environment. I installed it in C drive.

Installing XAMPP

Download XAMPP from the link https://www.apachefriends.org/index.html and install it in Windows environment. I installed it in C drive.

Configure XAMPP and Netbeans

From Netbeans IDE go to Tools->Options. Click on PHP. Now on tab “General”, browse the file for “PHP 5 Interpreter”. The php interpreter file generally placed inside the <physical drive in Windows OS>:\xampp\php\php.exe

Configure Codeigniter and Netbeans

Create a new PHP project in Netbeans. Choose “New Project”; select PHP from a list of Categories; select PHP Application under “Projects:” on right side and click on “Next”. In next window give the “Project Name”; make sure the “Source Folder” under “<physical drive in Windows OS>:\xampp\htdocs\<project name>”; choose “PHP Version” as 5.6 or as you wish and click on “Next”. In next window select “Local Web Site(running on local web server)” for “Run As” and “Project URL” should be populated automatically and click on “Finish”. Then remove the index.php file from the newly created project. Download Codeigniter 3.1.0 from link https://www.codeigniter.com/download Now copy the extracted files from Codeigniter 3.1.0 to the newly created project directory under “Source Files”.

Thanks for reading.

Leave a Reply

Your email address will not be published. Required fields are marked *