This project is read-only.

Contents

Download in PDF
  1. Abstract
  2. Introduction
  3. Background
  4. Deploying and Running MoodleAzure
  5. Packaging, Configuring and Deploying the Solution
  6. Implementation Details: What Changed
  7. Horizontally Scaling the Application
  8. Conclusion

Deploying and Running MoodleAzure

In this guide, we will setup a local development environment by installing all the required extensions and downloading a modified version of Moodle 1.9.9 which is fully aware of both, Windows Azure and Sql Azure services. We will then package our solution, and deploy it on the cloud.

Setting up a Development Environment

1.       The first step towards setting up a development environment is to ensure that you are running IIS. If you are unsure whether you are running IIS or not, go to: Start Menu > Control Panel > Administrative Tools > Services. Scroll all the way down and ensure the World Wide Web Publishing Service is listed, and started. If you cannot find this entry, go to Start Menu > Control Panel > Programs and Features > Turn Windows Features On or Off. Find and expand the “Internet Information Services” node and make sure “Web Management Tools” and “World Wide Web Services” items are checked.

2.       Install the latest version of PHP using Web Platform Installer. Go to http://www.microsoft.com/web/platform/phponwindows.aspx and install PHP 5 on IIS. We will use the downloaded files for the deployment we will setup later.

3.       Install the WinCache extension. This extension caches PHP opcodes so that the script execution process only reads the script once and caches the opcodes. Subsequent requests are served using a “precompiled” version of the PHP script. You can use the Web PI to install it from the same page as the one we installed PHP from. http://www.microsoft.com/web/platform/phponwindows.aspx

4.       Install the SQLSRV extension using Web PI. This extension provides Sql Azure compatibility with PHP. You can install this PHP extension by opening up the Web Platform Installer: Start Menu > All Programs > Microsoft Web Platform Installer. Click the Web Platform tab. Click the Customize link under the Database section. Finally check the “Microsoft Drivers for PHP for SQL Server 2.0. Finally, click on “Install”

5.       At this point we have setup IIS, PHP, WinCache, and the Sql Server drivers for PHP. Now we will create the required set of folders in which we will place our solution files and prepare for deployment. Create a folder named “moodleazure” under “C:\projects” the resulting full path should be: “C:\projects\moodleazure”. Create a second folder named “moodledata” under “C:\”. The resulting full path should be: “C:\moodledata”. This folder structure is only a suggestion. We will go over path configurations in the following section of this guide.

Last edited Oct 28, 2010 at 5:38 PM by unosquare, version 2

Comments

No comments yet.