If you are like me and prefer hosting your own content on your Home Server using the many varied PHP packages available, then getting PHP working on your server is a must.
Though it’s in beta, I’ve already gone ahead and installed PHP on Vail, and it works! In fact, because the built in website has been completely redesigned, it installs very easily. Only three steps are needed, in fact.
First, you’ll need to head over to http://windows.php.net, and download the “Non-Thread Safe” version of PHP for Windows. Either 5.3 or 5.2 is fine. But note, there are only x86 versions. Don’t worry, whilst Vail is a 64-bit operatong system, they will work perfectly fine. You will need to also download the Visual C++ Redistribution x64 installer, which is linked on the same page. Copy the files to a location accessible by Vail.
Now, use Remote Desktop to access your server (the username is “Administrator” and password is the one you specified). Once you’re into your Vail server, open a command prompt and run this command:
dism /online /enable-feature /featurename:IIS-CGI
This installs the “CGI” component in the web server (IIS) – specifically FastCGI, which is the recommended way to run PHP, and the only supported method for PHP 5.3.x. It also provides better performance than the older methods. This process should take about 10 seconds.
Now that CGI is installed and enabled, you’ll want to install the Visual C++ Runtime.
And once that’s done, run the PHP installer. All the defaults are fine, except one. It will ask you about “Web Server Setup”. Select “IIS FastCGI” and continue.
You’re done. That’s it. Nothing else is needed now. However, if you want to check it out, create a “test.php” file that contains this:
< ?php phpinfo(); ?>
in “C:\Program Files\Windows Server\Bin\WebApps\Site\”. In a web browser of your choice, navigate to “https://{vailserver}/test.php”. You should be greeted with this:
And yup. That’s it. Simple, isn’t it? If you’re really insterested in just how difficult it is for WHS v1, check it out here: link
In fact, the only way this could be simpler, is if the Microsoft Web Platform Installer supported Vail. But it didn’t support WHSv1 (even after letting them know how and why), so why would they support Vail? It is a beta after all!


















