Run HipHop PHP in Windows - php

I need to run HipHop PHP on a Windows based development environment. Im running Windows 7, I know the version located at facebook's repository is built for Linux, however I need to run it on Windows.
Some things to consider:
I don't want to install a Virtual Machine, I have VMWare, but it would be terrible to install it only for that
No CyWin either...
Anyone can help?

It is not possible to run HipHop on Windows.
Here's a quote from Scott MacVicar mailing list post on the subject:
We currently have no plans to add
Windows support, if someone within the
community comes up with a branch or a
patch that provides this then we'll gladly accept it.

There are two options for you:
Try compiling it yourself. If it fails, fix the code so it will compile.
Consider if there's another way to solve your problem (i.e., other tools than HipHop).
What have you done to solve your problem? Why did you conclude that HipHop was the right solution for your problem? What errors did you bump into when trying to install HipHop? These are such questions that you probably should ask yourself. They might help you to figure out how to solve your problem.

Related

Is it possible to switch versions for things like PHP in my dev sandbox without reinstalling?

I'm working on a dev sandbox which will mostly be used for integration testing.
I'd like to be able to run legacy versions of things like the magento cart platform which are compatible with older versions of php and so on.
I'd really like to be able to concurrently install several versions of PHP and then call them at the top of the file so it knows which version to evaluate scripts with, but I have no idea where to start configuring something like that.
Any suggestions would be hugely appreciated!
It may be beneficial to use a Virtual Machine set up of some kind such as Vagrant. Or perhaps run separate containers in Docker.
For something like vagrant I would build off another Vagrant box. Scotch.io have a really quick box you can use: https://box.scotch.io/
The docs for vagrant can be found here:
https://www.vagrantup.com/docs/
I have seen a lot of developers use Docker to run older versions of software for projects.
I would suggest reading the documentation for Docker here:
https://docs.docker.com/
Both Vagrant and Docker are larger subjects that I can explain in this answer.
If you want some more reading I found this on stackoverflow
Should I use Vagrant or Docker for creating an isolated environment?
It may help with deciding between docker and Vagrant.
I hope this helps in some way.

Is using Xampp/Wamp necessary or just a choice?

All the people I have seen working with php, were using Wamp or Xampp. And when I spoke with them as a fellow learner, their first question was which one I use(Wamp or Xampp).
Is Xampp/Wamp Server truly necessary to use or just my choice?
I first installed apache httpd server, then months later I installed Mysql community server and again months later php.I didn't plan to use them together, but now that I need to use them together, I am confused whether I should install Xampp/Wamp or it is fine without them.
Can serious and functional development can be done without using any of them?
I don't want to realize midway that I am going into wrong direction and it is not possible.I am not asking if it is recommended for ease of use or saving time. I have no trouble in learning to configure any of them and I have done so in past with very little trouble.
I would like to have an answer saying clearly whether I HAVE to use them, or they are just a matter of choice.
If you have done all the work of installing an AMP stack on Windows already then there is absolutely no reason to install WAMPServer or XAMPP.
These 2 products just make the process of installing a working AMP stack easier, they do not add anything over and above what you have managed to do all for yourself.
So when friends ask which product you use, all you need tell then is that you use a WAMP Stack that you installed and configured yourself.
I will add a couple of things though
WAMPServer does allow you to have multiple versions of Apache,MySQL and PHP installed in a way that makes it easy to switch versions of all 3 parts of the AMP stack very easily. In a development environment, I personally find this extremely useful. It means I can mimic a clients environment in a couple of seconds and at the touch of a couple menu items.
XAMPP does come with Perl.
If you want,you can download and integrate PHP in your invironment.
But if you want everything at one place then go for Wamp or Xampp.
Simple answer for the question is "it is just a choice". Because you can install all the software separately or all in one using WAMP/XAMPP

cleaner way to install Apache, MySql and PHP on windows

I really say its a very hard time for me when started to install these 3 things on my windows 7 platform. I know there is WAMP available to install at one shot. But I for good understanding I want to install these 3 separately and want to integrate it. Why its so clumsy and difficult for integration? Can anybody please advise me how I can do the following?
Which latest versions of these 3 are best compatible?
After installing Apache what in which mode I should run it? Console application or Server Mode?
In apache whats the difference if I run with CGI or without CGI?
What the things or modules or any changes I have to ensure before going to install the MySql and PHP?
When I installed the MySql it tell me that MySql server is installed. Is the my MySql server is another HTTP server? Is it a replacement for Apache?
After I install the PHP what are the minimum things I should check so that I will be ensured that it will work with Apache after integration.
I found the logfile locations for Apache. But where can I find the logfile locations for PHP and MySql?
May be I am newbie in this domain so I am asking these questions. But it will help anyone who want to start newly. Please advise me...
Ok, I still dont see why you dont want to just install a package like WAMPP/XAMPP or Zend Server CE (personal favourite atm).
Put it this way:
Generally speaking, all latest versions are compatible, meaning,
latest PHP + latest MySQL + latest Apache
Typically server mode, but this really depends on what you want...
this is not something for noobs, again rather use a package
Do you want CGI? or not? Read the documentation on
http://httpd.apache.org/docs/2.1/howto/cgi.html
Dont bother, this usually isn't necessary - again use a package
Mysql is a Database Service
Browse to http://localhost/ if it works, then it works. Libraries depend on your personal needs, if you for example need php's
MCRYPT library installed, you'll know - install it... if it's
already installed, it will work anyway
Google it
I doubt this will help you much...

Which is the simplest way to install PHP

I am very new to php.... please tell me the most easiest way to install it and run a sample app, some tutorials which do that....
I read something on internet but most of the time, all the tutorials were not ok... so i decided to ask here to find someone's else opinion...
Thanks
If you're on Windows, you can use WampServer which is pretty straightforward (just click next 3 times and you have Apache+mySql+PHP. For you development box of course (not for production).
In windows I would use WAMP or XAMP, in OSX I would use either the Native php installs or MAMP if you want to make it easy to configure.. On linux you should compile it from source.
Edit: As samuel says, only use these on Development machines, you should always compile your own versions for a production box!
You could use the MS Web Platform Installer.
I use AppServ it sets up Apache/PHP/MySQL and phpMyAdmin in about 5 clicks!

Getting started with PHP on Windows

I'm getting started with a side project that will be developed using PHP and I'm looking for guidance on getting my Windows machine up and running and ready for development (as quickly as possible). Being that PHP development is more geared towards Linux users/developers (which I am not), I'm trying to figure out how to get all the pieces in place to get a 'WAMP' stack operational locally on my Windows machine.
Any good tutorials/quick start guides out there and if not, does someone have all the steps that they could provide me with here?
Install Apache Friends XAMPP.
PHP on Windows:
Install Xampp because it is really easy to install.
Use version control system like for example git to store your code.
Use an IDE like netbeans/eclipse/aptana for faster PHP development(autocomplete, code formatting, PHPdoc, etc).
Learn a PHP framework like for example codeigniter to ease your development. The video/screencast to create a blog in 20 minutes will learn you how to use it.
Practice TDD to test your code, which will result in more stable code-base.
Good luck coding!
Learning Linux/Ubuntu:
As a sidenote when installing ubuntu which is really a straight forward process you will see that using linux isn't that difficult as you think(It used to be difficult compiling source manually etc). when you install a dual boot and play with every day. I guarantee you that in no time you will really love linux like I do. I really think linux is the best option for coding. Also redis main creator shares this opinion with me.
Probably the quickest way to get a PHP server up and running on Windows is WAMP 2.0. Wamp Site. I use it on my Vista machine. Download it, run the 'exe', and start coding. It is only 16 MB but it is powerful and very simple to use.
Why not go the official Microsoft route:
Microsoft Web Platform Installer 2.0
installs both PHP (to run in IIS) and MySQL.
My two cents. I use Netbeans for my windows PHP development. Here is a quick start guide
As previously mentioned, XAMPP is probably the easiest and fastest way to get started with PHP. Search installing xampp on youtube, they got a good video on how to install it to your system.

Categories