Skip to navigation

PCPro-Computing in the Real World Printed from www.pcpro.co.uk

Register to receive our regular email newsletter at http://www.pcpro.co.uk/registration.

The newsletter contains links to our latest PC news, product reviews, features and how-to guides, plus special offers and competitions.

Real World Computing

Storage facilities

Posted on 30 Mar 2009 at 15:33

Jon Honeyball makes the most of tumbling prices by ordering a tower of storage, and David Moss continues setting up a course management system.

In Server 2007 R2 it's easy to configure, just a few mouse clicks. Of course, you'll need to fully test this configuration to ensure that failover works and hands out the right addresses. I have just one doubt, though - in its example the DHCP group uses 10.x.x.x as the main IP address range. I have no problem with 10.x.x.x, which is one of the private address ranges in the IPV4 address space. Unfortunately, the failover machine uses 20.x.x.x, which is a real address range used for real computers on the real internet. I looked at the screenshots and thought I must be going mad, but no, that's the example. Someone, somewhere was having a bad brain day, unless they know something we don't. Emails to the usual address if you think that DHCP group is correct!

Jon Honeyball

CMS continued

Welcome back to this month's Server Room, where I'll be carrying on my project to set up a Course Management System (CMS). This is pretty much like a Content Management System for educators, so pay attention at the back or you'll be in detention.

Back to the job in hand. So far I've successfully installed and configured Internet Information Server (IIS) 7 on Windows Server 2008 and then installed PHP (PHP Hypertext Processor). As an aside, PHP really does stand for PHP Hypertext Processor - a recursive acronym or sort of smart-arsed nerdy joke. It used to stand for Personal Home Page, but was changed to PHP Hypertext Processor because someone liked messing with people's heads. When I left the story last month PHP was ready to be integrated with IIS 7, so that's what I'm going to do now.

To achieve this you'll need to run Internet Information Services (IIS) Manager, which you can either invoke from inside Server Manager, or from its own entry in Administrative Tools. Once it's running, highlight the server name in the left-hand pane and you'll be greeted by a set of icons in the middle pane, which should be labelled "Servername Home". Look for Handler Mappings and place your mouse pointer over it to find out what it does (it enables you to "Specify resources that handle responses for specific request types"). In plain English, that means this is where you create a module that enables IIS 7 to work with your new installation of PHP. Now you need to tell IIS 7 where PHP is located, and what type of module you want.

Double-click on Handler Mappings, and you'll see in the centre pane a list of the disabled and enabled modules in IIS 7. You're going to create a new module for FastCGI, so click on "Add Module Mapping..." in the right-hand pane then, with the Add Module Mapping dialog open, fill in the following values:

Request Path: *.php

Module (select from drop-down list): FastCgiModule

Executable: C:\PHP\php-cgi.exe

Name: PHP FastCGI

You can choose any name you like, but I just went for an easily identifiable one. If you click on the <...> button to browse for the executable file you might be momentarily nonplussed when you get to your PHP folder, on discovering that all you can see are lots of .dll files. However, look in the bottom right-hand corner of the Open dialog and you'll see a dropdown that defaults to only showing DLLs. Click on this and select *.exe instead, and you'll now see the three executable files that are in that folder.

Click OK when you've finished filling in the fields, answer Yes to create a FastCGI application, and you should see your new module appear in the Enabled list in the centre pane. That's it - job done, and IIS 7 is now configured to use your PHP installation, which you can prove by firing up the oldest code editor in use in Windows today. That's right, it's Notepad time. Fire it up, and enter the following line:

1 2 3 4 5
Be the first to comment this article

You need to Login or Register to comment.

(optional)

advertisement

Latest Real World Computing
Latest Blog Posts Subscribe to our RSS Feeds
Latest News Stories Subscribe to our RSS Feeds
Latest Reviews Subscribe to our RSS Feeds

advertisement

Sponsored Links
 
SEARCH
SIGN UP

Your email:

Your password:

remember me

advertisement


Hitwise Top 10 Website 2008