PHP coming soon on a NetBeans installation near you

Alexei and the team have been working on a PHP plugin for NetBeans 6. I am hoping they'll be able to release it on the NetBeans 6 update center in early December. The bits will be young, beta quality at best, however I am experimenting with PHP support in NetBeans and I like what I see so far.

The first thing one may do is make sure to get a runtime stack that supports the deployment of PHP applications. Given that many of these apps will have a database backend, this calls for something like MySQL. You'll also need a matching web server, and apache comes to mind :-). Here are few easy steps to get started:

 

  1. SSH Server (for remote access): sudo apt-get install ssh
  2. Database Server: sudo apt-get install mysql-server
  3. Apache HTTP Server: sudo apt-get install apache2
  4. PHP for Apache HTTP Server: sudo apt-get install php5
  5. MYSQL for Apache HTTP Server: sudo apt-get install libapache2-mod-auth-mysql
    sudo apt-get install php5-mysql

Once you install the PHP plugin in NetBeans, use the  "Services" tab to configure the document root for Apache web server installation. On my Ubuntu installation the document root is /var/www/apache2-default. You will likely have to change the permission for the document root, since NetBeans is usually install in user mode and apache required sudo.

To test everything, just create a new PHP Project in the IDE and add the following line of code: phpInfo(); in the default file. Next deploy you page and in your browser look for something like: http://localhost/apache2-default/index.php 


Comments:

excellent news. been wanting to do php dev in netbeans for a while now... just basic syntax colouring and code folding would be a helpful addition

Posted by Jonathan Fisher on November 01, 2007 at 03:35 AM PDT #

this is great news, have you considered supporting http://www.caucho.com/resin-3.0/quercus/ for a 100% java implementation of PHP.

Posted by Kevin Daly on November 01, 2007 at 05:04 AM PDT #

wow! that's awesome. Netbeans is fast becoming a universal IDE

Posted by raja sekharan on November 01, 2007 at 10:29 AM PDT #

Oh you are such a tease :-) - I still don't get how ruby stuff got done before php stuff but I can't wait.

Posted by Jeremy Pointer on November 01, 2007 at 05:30 PM PDT #

OK, you've just made my day. This is excellent news. I can hardly wait. Keep up the good work. NetBeans is my main IDE, and being able to do PHP as well, would have me working almost solely in NetBeans.

Posted by Ryan on November 02, 2007 at 01:40 AM PDT #

Interesting! Is it possible to add the plugin and have a look at what is happening now?

(I fail to spot a link to where I can get it :-)

Knubo

Posted by Knut Erik Borgen on November 08, 2007 at 07:37 PM PST #

For now (until early Dec) the only way is to build the plugin yourself. If you point to the NetBeans CVS (:pserver:anoncvs@cvs.netbeans.org:/cvs), you'll find the sources under scripting/php. Build instructions can be found here: http://wiki.netbeans.org/wiki/view/WorkingWithNetBeansSources. If you don't want to bother with all the details or want contribute to the dev effort, just write to Alexei.Mokeev@sun.com and he should be able to help.

Posted by Octavian Tanase on November 14, 2007 at 12:42 PM PST #

Post a Comment:
Comments are closed for this entry.
About

octav

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today