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.
Related
I followed this guide for eclipse integration on drupal:
https://drupal.org/node/1420004
I tried to install PTI plugin to Aptana
(Aptana Studio 3, build: 3.4.1.201306062137, with Eclipse Platform Version: 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q)
, but got a lot requirement missing errors.
Then I enable Eclipse Indigo Update Site (http://download.eclipse.org/releases/indigo) in my Aptana, and installed it successfully this time.
Then I config it like this:
But it just don't work!
I have installed php codesniffer and pear library, it works perfectly in command-line, and git pre-commit hook, but I can't get it work in Aptana.
Even I right click on a file, the PHP Codesniffer is grey and unclickable.
I wonder what is the right way to install codesniffer to Aptana Studio ?
You will need to set up the "PHP Executer". Use the link on the side of that select-box and configure one, poiting to the php binary you have. It probably is /usr/bin/php5. If the .ini file is required, it'll probably reside in /etc/php5/cli/ or /etc/php5/apache2/.
If those are not correct, you can execute and retrieve the location of that information.
I needed to set this up in order to have my codesniffer working. I couldn't find how to make it work without clicking in the button in the editor's toolbar, but It worked.
I want to make custom php/apache2 installer including my web application for distribution. So for example user downloads the one click installer and he will have installed php/apache2 and web application. And all he have to do is go to localhost. (The best thing would be double click then shortcut icon just to go to localhost in browser, but check that apache is running)
What is the proper way to do it? Any tips, easy tip of doing it?
p.s. for all popular os Mac OS, Win, and Linux/Ubuntu
I'd ship a Virtual Machine with the application, and supporting platform, installed and ready to go. Virtualbox is well supported and would be a good place to start.
Good luck,
Anthony.
Latest PHP version has a webserver included and with SQLite, all you need is to start PHP WebServer, maybe it could help to make a lightweight installation.
I'm in the process of switching over to developing on a Mac (woohoo, new Macbook Air) after years of Windows. My previous PHP development setup was:
WAMP
NotePad++
XDebug
TortoiseSVN and WinMerge (linked to an Unfuddle svn account)
I've just installed MAMP Pro (evaluation copy of Pro), Eclipse for PHP Developers (Version: Helios Service Release 2, Build id: 20110218-0911), and Subclipse. I'm trying to get over the "new to Mac" hump at the same time as switching dev tools. Which is making me question my setup eleventy billion times more than usual. I've read lots of StackOverflow questions and answers, googled the heck out of dev environment tutorials. What I really want to ask is "PLZ tell me what to do to get a good dev setup on my pretty new Mac!" but since that's probably not a very well-formed question, I'll try to narrow it down some. (But if you get bored reading this question, and just want to point me to a good book or tutorial, FEEL FREE!)
MAMP: OK, I think I'm fine on this one, right? It's pretty much the defacto standard, if I don't want to hammer everything together myself from what came pre-installed on my mac. I'm probably fine with dropping $60 to get MAMP Pro, as developers I know have told me the long-term convenience is worth it.
IDE: I used Eclipse for several years... but for Java development in a Windows environment. Part of me is happy to get back to a full IDE after a few years of PHP in Notepad++. But do I want Eclipse for PHP? EclipsePDT? Something else? I picked the version I have based on several StackOverflow answers mentioning that EclipsePDT didn't necessarily play well with Mac.
SVN: I took the StackOverflow hive mind advice to install Sublipse for the eclipse integrated SVN plugin. Yay, it looks like it's working, or at least I can browse my repository.
Debugging: Zend Debug comes with MAMP, right? I've never used it, but I was only semi-happy with XDebug + Notepad++ on my Windows box, as it kept locking up and requiring a Notepad++ restart multiple times a day. Will I love Zend more? Should I stick to XDebug? (Or, wait, does Zend only work with Eclipse PDT?)
Now for the actual setup questions. Given that I've got existing Unfuddle SVN repositories, what's the best way to set up my dev environment? Put the source code into the MAMP htdocs directory, and point the eclipse workspace there? (recommended by many SO answers, IIUC) Vice versa, with code into the default eclipse workspace, and point MAMP to it? A separate Projects/myProject1 directory, pointing both MAMP and Eclipse there? I'm concerned that any of these options will work for the initial setup, but that I'll get deep into the work and discover that my debugger won't work for one configuration or another, or... I dunno, something I haven't thought of yet will cause a problem I could have avoided, if only I'd known.
OSX (also the client version) already includes everything you need to develop with PHP! Oh, and it's all 64 bit :) (on Snow Leopard and Lion)
Apache 2 is included by default and can be enabled from System Preferences -> Sharing (its name is "Web Sharing", or something similar: I'm sorry but I use OSX in another language!).
PHP is installed by default too. You just need to enable it in /etc/apache2/httpd.conf: uncomment this line:
LoadModule php5_module libexec/apache2/libphp5.so
MySQL can be installed from binary packages, downloaded from: http://www.mysql.com/downloads/
The only things you need to change in the php.ini file (/etc/php.ini) are:
pdo_mysql.default_socket=/tmp/mysql.sock
mysql.default_socket = /tmp/mysql.sock
mysqli.default_socket = /tmp/mysql.sock
You need to manually set the socket location for MySQL or it won't work with PHP.
Also, remember to set a value in date.timezone.
SVN and Git are installed automatically when you install the developer tools for Lion, which can be downloaded freely from http://developer.apple.com/mac (a free registration is required).
If you need Mercurial or if you aren't on Lion (so you don't have XCode 4), download the developer tools, then an application named macports, which provides ports for thousands common UNIX tools: http://www.macports.org/ . Once MacPorts is installed, you can install the required packages with a simple command:
sudo port install subversion
sudo port install git
sudo port install mercurial
I don't use any graphical tool for these SCM, so I can't really suggest you. I prefer the old, plain command line!
Developer Tools (the package with XCode) is required also if you want to use pecl to install custom extensions (the default distribution of PHP Apple ships doesn't contain some extensions like mcrypt, gettext and intl, just to name the three most important).
Speaking about editors... The one I really prefer and love is Coda. It's not free, but it's perfect if you want to develop in PHP: http://panic.com/coda/ .
It's also integrated with SVN (but we use Mercurial so I never used that option!).
For (S)FTP, I recommend you Cyberduck, which is free (open source): http://cyberduck.ch/ . Another really good client should be Transmit, but it's not fee (it's from Panic, the same company that produces Coda): I've never tried it (I'm really happy with Cyberduck!), but I heard thousands of good opinions about it.
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.
I have a project that's intended to use some PHP as well as Java and Javascript, so I installed the PDT PHP plug-in for Eclipse, using the Install New Software menu option. Now Eclipse agrees PDT is installed, but no PHP features like creating or editing PHP files are appearing anywhere. Is there something else I need to do to activate PDT? (I did restart Eclipse like it said I needed to.)
Right click on your project, Configure (it's at the bottom of the list)->Add PHP Support...
After it's done, you should see a little P symbol in the project's icon.
Just create new project using the wizard, and choose PHP one. After Eclipse will know that your project is actually based on PHP, it will show you all the features.
In case if you have existing project, just open the PHP perspective.
I've once had a similar problem. Eclipse was running with the JRE 1.4, and it seems the JRE 1.5 or later is required to run the PDT. I switched to Java 1.6 and that solved the problem.
I run into this sometimes with eclipse plugins.
Have you tried uninstalling it, removing the jar and files it from eclipse/plugins and eclipse/features, then installing it again?
If you don't feel like doing that. Try installing it in a clean eclipse instance and if it works then it's just a config issue with eclipse.
You might have not installed all of the tools too.
The solution I eventually came up with was to just install Aptana Studio, a PHP IDE based on Eclipse, whose standalone version can coexist happily with the regular Eclipse on the same machine.
In order to have PHP support in eclipse project, you need to add PHPNature to the project. It's a kind of configuration paramter of eclipse project. When you craete a new PHP project using a wizard, check the .project file in a new project directory. There is a PHPNature line. Copy this line into .project of your java project.
Another solution is to separate java and php code in a different projects, each one craeted by right wizard.