How to run and Use Codeigniter “Php Framework” on Your Server Using Netbeans 6.5

Jul 07, 2012, by admin

CodeigniterThis article explains and shows how to run and configure a php framework (codeIgniter) on your remote server by using NetBeans 6.5; hopefully you’ll find that useful.

1.If you don’t have NetBeans 6.5 on your computer, then you need to download it from NetBeans.

2.Make sure that PHP plugin is installed with your Netbeans; to do so, you have to open NetBeans, go to Tools, go to Plugins, open the tap “Installed” , look for PHP. If it is not there, then open the tap “Updates” , then look for PHP, if you find it check-mark it, and finally click “Update” at the bottom of the window .

Netbeans

3.Now, you need to download the PHP framework you will be using in your project; which’s CodeIgniter in this case which you can download to your computer (anywhere) from this link.

4.Now you need to Un-Zip the CodeIgniter file you just downloaded, then rename the un-zipped folder created as the project you will develop.

Codeigniter-15.It is time to create a PHP project in NetBeans by opining NetBeans, go to File, go to New Project, choose PHP from Categories, and choose “PHP application with existing source” from projects, then click Next.

6.On the source folder, brows to your project folder; which you just renamed

7.On the Project Name, should be the same name as you named the folder.. then click Next

netbeans-logo8.Now, we need to configure where the project will be tested and running ( on the server on this case).

9.On Run As, choose “Remote Web Site FTP”

10.On project URL, put the URL of where the project can be accessed at. E.g. if my website is www.xyz.com which contains many project, then my current project should be accessed as www.xyz.com/myProject .

codeigniter-logo 11.On the index file, you should browse to application/controller/YourController/IndexMethod

12.On FTP, choose manage, add a new FTP, on the opened window, put the host name, user name and password given to you by your server’s host, leave everything else as it’s.

netbeans-logo-113.You can test your connection with the server, by clicking “Test”. If that succeeded, then click OK; to be taken to the main window.

14.On Upload Directory, make sure you specify where the project resides on your server. For example, if my website is www.123.com which contains many project, and my current project i’m developing now can be accessed as www.123.com/myProject, then the upload Directory should be like /123.com/myProject

15.On Upload Files, choose on Run.

16.Click Finish…..Congratulation !! you are done configuring your CodeIgniter project on NetBeans and on your remote server ..