Compartir a través de


PHP 5.4 available in Windows Azure Web Sites

I’m happy to share that PHP 5.4 is now available in Windows Azure Web Sites! You have always been able to install a custom PHP runtime in Web Sites, but now you can have PHP 5.4 available with the click of a button. And, you can customize the runtime (add/enable extensions, modify configuration settings). Details are in the instructions and links below…

1. Create a website. Any of the following articles will walk you through how to do this.

2. Click on the name of your site in the Windows Azure Portal:

image

3. Browse to the CONFIGURE tab, and select PHP 5.4 (notice that PHP 5.3 is enabled by default):

image

4. Click SAVE at the bottom of the screen:

image

If you browse to a script that calls phpinfo(), you should see this:

image

Of course, you can always revert back to PHP 5.3. And, you can still customize the built-in PHP runtime, or you can provide your own customized PHP runtime: How to configure PHP in Windows Azure Web Sites.

As always, we’d love to hear your feedback.

Thanks.

-Brian

Comments

  • Anonymous
    November 18, 2012
    Can I run ionCube with this version of PHP? It requires being able to specify ZEND_EXTENSION somehow. Do I still need my own standalone implementation of PHP for that?

  • Anonymous
    November 19, 2012
    Hi Mike: I haven't tried to enable ionCube with this version of PHP. Have you tried enabling a Zend extension as shown in this post (can't recall if I mentioned this in the forums): blogs.msdn.com/.../how-to-enable-xdebug-in-windows-azure-web-sites.aspx. That post shows how to enable XDebug, also a Zend extension.

  • Anonymous
    November 26, 2012
    Mike, My PHP website is attempting to make a call to a compiled program and is failing with the error exec(): Unable to fork. Searching around shows that this is probably a permissions issue, and that I could provide the proper permissions to the IUSR account, but Azure websites don't allow this level of control. Is it possible for PHP to make a call to a compiled program in azure websites?

  • Anonymous
    November 26, 2012
    I meant to address Brian, sorry about that. Thanks in advance for your help Brian...

  • Anonymous
    February 15, 2013
    Thanks for Your instructions..... I understand chordsmantap.blogspot.com/.../bankmandiribankterbaikdiindonesia.html