I have installed Netbeans 8.0 and I think he installed with php because I haven't made others installation and everything work, but now I try to make Zend Framework 2 work and I have downloaded the skeleton select it, select the composer but because it can't detect php interpreter it can't run the composer and gives an error when use zend classes.
My question is where I can find the interpreter because I look in netbeans/php and I haven't find a php.exe and also I haven't find it anywhere my pc.
You can use software like XAMPP, LAMP (both available also for linux), WAMP. All off them contain PHP. Windows packages have pretty installers.
Related
I've started a new project in which I like to used the current version of PHP (5.5.12). I compiled this version myself because the version of my distro is 5.3.
I need propel ORM so I installed it via composer.
Now, the propel-script uses this shebang:
#!/usr/bin/env php
which of course calls the main PHP (5.3) and not my self-compiled one. Unfortunately propel needs PHP >= 5.4 and I cannot execute the script without errors.
So my quick-and-dirty solution is to replace the first line in the propel-script with:
#!/opt/php-5.5.12/bin/php
which works, but is not update-safe. At least I think this could be replaced by doing a composer-update.I still need the 5.3-version for other projects, so using an alias is no solution for me.
It's maybe some petty problem, but is there a finer way to combine 3rd-party-libraries via composer with a self-compiled php executable?
I would encourage you to use vagrant and setup a virtual machine environment where php5.5 is installed. You could setup an Ubuntu 14.04 for example, it contains PHP version 5.5.
Developing on your physical machine is sooo yesterday! ;)
I'm looking for a way to compile phpredis (https://github.com/nicolasff/phpredis) for windows (because the few already compiled binaries I found where Thread Safe only thus not working on my NTS PHP). I've done everything written there : https://wiki.php.net/internals/windows/stepbystepbuild but I'm clueless about what files/directories I should get from https://github.com/nicolasff/phpredis, where to put them and how to have the building environment "configure" tool detect.
Note: I'm not familliar with Github as well.
You can find the DLL's and intructions here:
http://char101.github.io/phpredis/
I just installed them successfully on my wamp server.
UPDATE
If that doesn't work, try to download from this link:
https://github.com/nicolasff/phpredis/downloads
(I was able to install on Windows 8/Wamp only with the second link)
I need help with this issue. I'm trying to install php in my netbeans but i dont know exactly how to do it. The netbeans version i'v downloaded already have PHP installed (i can create a php project). But, for some reason when i run the project, nothing happens. I dont really think i have Apache Tomcat installed in my netbeans, that what i need help for. When adding the "tomcat 6.0" server, this information is needed:
server location (catalina home)
username
password
I have no idea what is that. I would apreciate help on this - How to install PHP + ApacheTomcat on neatbeans.
Apache Tomcat is for running Java apps. You'll be wanting Apache HTTP server instead.
I've always kept the installation of Apache and netbeans separate, I would:
Install Apache on your system - doesn't matter if Windows or Linux, just follow install instructions.
Find out the Apache directory that you will add your php files into. That's usually /var/www/ on Linux, don't know about Windows.
Create a new PHP project in Netbeans and configure it to use sources from the Apache directory in #2. Say for a project called teststuff I create a dir called /var/www/teststuff/ and create a Netbeans project inside there.
You should be able to browse to http://localhost to see your new server running.
i've been using xampp 1.7.3 for a while now and today i've decided to have a look into zend framework and got a zendserver ce 5.0.2.
i'm on windows 7 and until i used the command line tool, i haven't noticed that there was a version of zend framework (zf) shipped with xampp.
zendserver got a more recent version than the xampp one. xampp was already added to the path before zend server.so command prompt is only seeing xampp one, plus it's throwing errors when creating projects.
i'ld like to use the zendserver one as default and i've tried to put the zend server bin before php in the environment variables and restarted the machine but no success.any ideas ? thanks for reading
If you cannot find how to take out the xammp zf path you could always rename/move/delete de version from xammp. Since the zend server one is on your path it should not be a problem at all.
Alternatively you could try replacing the version in xampp with the more recent one. As far as I know xampp does not use zf itself so I doubt it would break something.
If you are just trying out zend any of these solutions is pretty easy to undo. Also maybe look into virtualisation for these kind of needs. Easier to just create virtual machines then make many webservers work on the same one.
Hi I've installed XAMPP and I want to use the PHP that comes with it from the command line.
So I'm looking to disable the Apple version of PHP and related tools.
Anyone know a clean way of doing this, while allowing Apples PHP to be re-enabled again relatively easily?
Turning off web-sharing (Sys Prefs -> Sharing) will let you set XAMPP to listen on :80, and it will use it's own version of PHP.
For CLI, you can setup an alias in your .profile to point at the XAMPP version or put the XAMPP bin folder (wherever the php executable is found...) in your PATH, ahead of /usr/bin
I'd suggest to uninstall the apple php package. You can reinstall it anytime...
Of course you would have to tell osx to use XAMPP 's php interpreter instead of
the on board one.
Basically this should be sufficent to achieve the change in the file handling.