 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Brian Swan's Blog: Azure Real World Migrating a Drupal Site from LAMP to Windows Azure
by Chris Cornutt March 20, 2012 @ 08:44:04
In this new post to his blog Brian Swan shares the process that he and other Microsoft-ers went through to migrate a site off of a LAMP stack and over to one based on Windows Azure. They moved was the SAG awards website because of issues it had seen with outages and slow performance.
In many ways, the SAG Awards website was a perfect candidate for Windows Azure. The website has moderate traffic throughout most of the year, but has a sustained traffic spike shortly before, during, and after the awards show in January. [...] The main challenge that SAG Awards and Microsoft engineers faced in moving the SAG Awards website to Windows Azure was in architecting for a very high, sustained traffic spike while accommodating the need of SAG Awards administrators to frequently update media files during the awards show. Both intelligent use of Windows Azure Blob Storage and a custom module for invalidating cached pages when content was updated were key to delivering a positive user experience.
He walks you through each of the five steps (high-level, obviously) that they took in the migration:
- Export data
- Install Drupal on Windows
- Import data into SQL Azure
- Copy media files to Azure Blob Storage
- Package and Deploy Durpal
Each step comes with some explanation and descriptions of the commands and tools used during the process.
voice your opinion now!
windows azure migrate lamp stack sag awards tutorial
Brian Swan's Blog: Using SQL Azure Federations via PHP
by Chris Cornutt January 20, 2012 @ 08:31:46
Brian Swan has a new post to his blog about using Azure Federations in your PHP applications:
In a nutshell, SQL Azure Federations introduces an abstraction layer for the sharding of SQL Azure databases. The value in federations lies in your ability to have elastic scalability of the database layer of your application (to match the elastic scalability of the rest of your application when it's running in the cloud). And, one nice thing about the way federations work is that nearly everything can be done with simple SQL commands. Of course, that means that using SQL Azure Federations via PHP should be easy. So in this post, I'll introduce you to SQL Azure federations by showing you how to use them via PHP.
He uses the SQL Server drivers to make the connection to the Azure instance and, based on his included code, creates a federation and tables inside it.
He also shows how to insert data into these tables, split up a federation, insert data after this split and how to query a federation member with the filtering on or off.
voice your opinion now!
azure federation tutorial windows sharding database
Brian Swan's Blog: Automating PHPUnit Tests in Windows Azure
by Chris Cornutt January 05, 2012 @ 11:58:46
Brian Swan has posted another tutorial in a series looking at testing applications on the Azure platform. In this latest post he talks about how to automate your PHPUnit tests as a part of the start up of the instance.
In this post, I'll show you how to deploy your PHPUnit tests with your application, have the tests run as a start up task, and have the results written to your storage account for analysis. Attached to this post is a .zip file that contains a skeleton project that you can use to automatically run PHPUnit tests when you deploy a PHP application to Azure. I'll walk you though how to use the skeleton project, then provide a bit more detail as to how it all works (so you can make modifications where necessary).
He has it broken up into a few easy-to-follow steps:
- Download the AzurePHPWebRole zip archive and unpack it
- Copy your application, tests and PHP installation into the resulting file structure
- Create a skeleton "ServiceConfiguration.cscfg" file with the "cspack" command and edit it to change the "osfamily" and "osversion" settings
- Use "cspack" to package up the application and deploy the application
He walks you through the "how it works" steps too - the things that happen for you automatically on the server side to do things like set up the file to log to, configure the PHP environment and execute the "runtests" Powershell file as included in the AzurePHPWebRole download.
voice your opinion now!
automate test phpunit windows azure deploy automatic tutorial
PHP.net: PHP 5.4.0RC4 Released!
by Chris Cornutt December 28, 2011 @ 08:55:32
The latest version of PHP in the 5.4.0 release candidate series has been posted - PHP 5.4.0 RC4, complete with new features and lots of bugfixes.
The PHP development team is proud to announce the 4th release candidate of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviours. Windows binaries can be downloaded from the Windows QA site. THIS IS A RELEASE CANDIDATE - DO NOT USE IT IN PRODUCTION! This is the 4th release candidate. The release candidate phase is intended as a period of bug fixing prior to the stable release. No new features should be included before the final version of PHP 5.4.0.
Updates in this release candidate include an update to the max_input_vars directive and a fix for a segfault in the traits code. You can find the full notes for the release in the NEWS file and can download the latest from the PHP.net site - source downloads, Windows binaries.
voice your opinion now!
release candidate windows binary news
Michaelangelo van Dam' Blog: Windows Azure for PHP developers
by Chris Cornutt December 12, 2011 @ 09:17:55
In a new post to his blog, Michelangelo van Dam starts off a series looking at Windows Azure for PHP developer, an introduction to the service and what sorts of features it has to offer.
I'm a developer and I don't want to fiddle with setting up and maintaining an operating system, basically since I don't have the time for it. [...] I was completely sold when Josh Holmes came to Brussels in 2009 and told us more about what Windows Azure has to offer and how perfectly it is to build applications consuming these cloud services, without having to deal with setting up and maintaining the platform the run on.
He points out just a few of the features of an Azure instance - pre-installed OS (similar to Windows 2008 Server + IIS7), the five types of storage available (including Queue, SQL Azure and Blob storage). He also mentions working with file uploads, sessions, caching, database interaction and a brief comparison of cloud versus non-cloud scaling methods. In the next part of his series, he'll get more practical and show how to set up a Zend Framework application on an Azure instance.
voice your opinion now!
windows azure introduction series features
Brian Swan's Blog: Running PHPUnit in Windows Azure
by Chris Cornutt December 09, 2011 @ 10:08:47
Brian Swan has a recent post to his MSDN blog about setting up PHPUnit for testing on a Windows Azure platform (as installed via PEAR).
After figuring out how to run PHPUnit from the command line in a Windows Azure instance, I did find that a bit more configuration work than I anticipated was necessary. I'm not 100% certain that this is the best way to run PHPUnit in Windows Azure, but it is one way. I'd be interested in hearing better ways to do this.
He breaks it up into a few different steps:
- Building the application with your tests locally
- Package the application up for Azure deployment
- Enable RDP access on your Azure instance
- Find your PHP and PEAR install on your instance and, logged in via RDP, add their locations to your current path
- Edit the phpunit.bat file to point to the right PHP location
- Execute the tests!
For other options for testing Azure-based applications, see Brian's previous post.
voice your opinion now!
phpunit windows azure unittest rdp
PHP.net: PHP 5.4 beta2 released
by Chris Cornutt October 27, 2011 @ 10:12:59
The PHP.net site has a new announcement about the latest version of the language in the PHP 5.4.x series - beta 2 has been released for testing.
The PHP development team is proud to announce the second beta release of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviours. Windows binaries can be downloaded from the Windows QA site. [...] Please help us to identify bugs by testing new features and looking for unintended backward compatibility breaks, so we can fix the problems and fully document intended changes before PHP 5.4.0 is released. Report findings to the QA mailing list and/or the PHP bug tracker.
Remember - this is not a production release, so do not use it in your live applications (unless you really like to live dangerously, of course). You can look at the NEWS file for a complete list of changes.
voice your opinion now!
beta release second windows binary qa bugtracker
|
Community Events
Don't see your event here? Let us know!
|