Netbeans PHP project - can't create a new one - php

netbeans noob - first time running ubuntu and ever using netbeans just a heads up..
I can't create a new project in netbeans. I downloaded the plugins i wanted for PHP
When i go to File -> New Project the only item i see under categories is "Samples." Samples is broken down into two sub-categories which are ApiSupport and PHP.
Any ideas on how to fix this?
Thanks in advance..

Make sure that you have PHP Plugin installed and active.
Click Tools (menu) -> Plugins (menu) -> Installed (tab).
You should see window like this:
If there is no PHP Plugin - install it (go to Available and search for PHP with description similar to mine).
If there is PHP Plugin but inactive - select it in "Select" table column and press "Activate" button.
If there is PHP Plugin and it is active - reinstall it by using Plugin window.

I realize this is an old thread, but I was looking for the answer today and ran into the same issue. Though the previous answer is technically correct, it was not the issue I was having as I already had the plugin (it came with the Netbeans download). That said, the issue was not having a lamp environment. Once installed apache, php, and mysql, the PHP category showed up. Instructions from Netbeans can be found on their website, but if you are using Ubuntu (or anything Debian based) you can run
sudo apt-get install php5 php5-mysql mysql
PHP5 has a dependency for Apache so it will ask if you want to install dependencies. You just say yes. If my memory serves, Redhat (CentOS and Fedora) would be:
yum install php php-mysql mysql

Related

Vim - Eclim for PHP

I am using Manjaro Linux (based on Arch Linux). I instaled Eclipse and then Eclim (both from AUR). First time it was working, but I was able to create only C++ project. Then, I tried to install Eclipse PHP (also from AUR), but then Eclim stopped working. After that I was completely unable to start Eclim daemon. Can you help me what to install to be able to create PHP project.
I also posted this on Google Groups for Eclim, but there seems to be almost no activity.
Solution to the problem is to install the Eclim from their website, not the one from the AUR. During the installation, there is option to choose specific programming languages.

How to downgrade PHP version from 5.3 to 5.2 in Ubuntu 12.04?

I have freshly installed Ubuntu 12.04 and I have installed PHP as well. By default, it is installed with version 5.3.10 but my PHP project doesn't support PHP v5.3.10.
I want to downgrade PHP version to 5.2. How can I do it?
You would have to uninstall PHP and then reinstall an older version. However if your working on a project that your going to sell, or give to clients, or whatever the case my suggestion would be take out any functionality thats actually breaking between 5.2x and 5.3x and replace it with its new counter parts, as most people will not want to revert to older versions of PHP for any needs, and generally speaking php versions only goin in one direction, if you block yourself into 5.2 and your making software in one shape or another for people, what are you going to do next year when all the servers come stock with PHP 6? Not to mention a lot of hosted solutions try to provide the latest and greatest on there new machines, and will not revert for a single client especially on a shared hosting environment.
Anyway yea, back to your question again in your terminal under Ubuntu, you can try the following. sudo apt-get purge php5 which will then prompt you for a password, then proceed with removing PHP assuming you have the PHP package standalone and not bundled in with some preconfigured LAMP stack, but then again it should still work generally speaking so long as the version is right.
As for reinstalling it, remove purge from the command and use install. However you will need to look up the means of getting an archived version installed of PHP as apt-get will get you the latest

Current method for using eclipse for java and php?

super easy question that i can't find the answer to on eclipse's website....
i have a new laptop and am installing eclipse on it. things seem to have a changed a bit since the 3.5 version i have on my current comp. i recall dloading eclipse just once, and then installing some plugins for stuff like php editing. but the new downloads page seems to have entirely different versions for the different languages:
http://www.eclipse.org/downloads/
so will i need to do one install for java, one for php, one for anything else? or is the method the same as before?
thanks,
jonah
You can install different development platforms onto your base Eclipse installation. Go to Help > Install new software and then try typing in PDT into the Work with text field. You should see it autocomplete with http://download.eclipse.org/tools/pdt/updates/. If selecting it doesn't automatically populate the area below, try the Add button.
You should eventually see options for the PDT SDK that you can select to install.
See also:
the official installation wiki
the package comparison page.

PHP Netbeans 6.8 subversion integration (Windows 7)

I am using Netbeans 6.8 for PHP (under Windows 7) and the subversion integration doesn't work. I am able to checkout a module but I don't see the subversion features in the menus or the outine in the editor left margin that shows the changes in the files. I am using it under Ubuntu with no problems.
Did any of you experimented the same problem? If yes, were you able to make it work?
Thanks!
Go to Tools -> Plugins and make sure the Subversion plugin is installed under the Installed tab. If it is make sure it's enabled as well. If not you'll need to install that plugin to bring the context menus into NetBeans. Once you get those try and run any Subversion command (like update) and if the underlying SVN installation hasn't been completed it should walk you through finishing it.
It is workng now, seems that in Windows the project MUST be in My Documents\NetBeansProject folder for the Subversion integration to work. I don't know if this is a bug but it is not behaving like this in Ubuntu.
Thanks for your help Cryo.
If the Netbeans svn plugin doesn't work, you can install a commandline subversion client like sliksvn and then netbeans should find the commandline tools.
Also, you should check your permissions on the folder you are working in. You probably don't have the permission required to use subversion in the folder that you are trying to use it in.

Installing PHP in IIS 5.1

I know there have been some similar questions to this, but they haven't helped me.
I'm trying to install Wordpress 2.8.4 on my XP box, with IIS 5.1. I installed MySQL, and found that it was possible to install Wordpress through the Microsoft Web Platform Installer. After installing Wordpress (the install worked fine), I proceeded to the next step in the Wordpress installation documentation, which is to open wp-admin/install.php in your browser. IIS seemed to not be interpreting PHP, and when searching for the best way to install it, I saw that it is also available with Microsoft Web Platform Installer, so I installed it that way. However, my IIS isn't interpreting PHP still. I do not know what the problem is, but I'm going to reboot right now and see if that helps, as I didn't reboot after the install (even though it didn't say I have to). Any help would be greatly appreciated. Thanks!
Application mapping for .php extension to x:\php5\php-cgi.exe is needed.
Open properties dialog box of IIS's Default Website, and perform extension mapping.

Categories