Monday, February 14, 2005

STAGE 1: Install Apache and ColdFusion Express

Our plan of attack for Stage 1 is this:


INSTALLING APACHE (from the Cert in Web Apps CD)

The Apache web server is on the Cert in Web Apps Development CD. It is called OpenSA, but it is an Apache based server.

Once installed you will have a new directory on your hard drive called c:\openSA

Apache has to be started before you can serve up web pages locally from your hard disk. Luckily this is easy.

TO START APACHE
From the Start menu:

Programs>OpenSA Web Server>Management>Start Apache

You will get a little feather icon on your task bar with "Start Apache" next to it. You can tell it is there!

SERVING UP PAGES

Apache uses the domain "localhost" for locally served pages. Therefore your web address will be of the form:

http://localhost/index.htm

WHERE TO PUT PAGES ON YOUR HARD DISK

You need to save web pages to your hard disk in the folder:c:\openSA\apache\htdocs

For the example shown immediately above a file called index.htm saved in c:\openSA\apache\htdocs would be displayed in your browser if you called up http://localhost/index.htm.
As long as you've got your little feather showing!!!!

INSTALLING COLDFUSION EXPRESS (from CD ROM in the back of the ColdFusion book)

BEFORE you start to install ColdFusion you might want to create a new directory in your c:\openSA\apache\htdocs folder. I did and called it "coldfusion".

Installing ColdFusion Express is relatively straightforward. On my install it told me it couldn't find a web server (tried to install with and wothout Apache running in the background). Then it asks where you want to save the files. They need to go in the root directory of you web server (c:\openSA\apache\htdocs). I put mine in c:\openSA\apache\htdocs\coldfusion, that seemed okay.

I can't see that ColdFusion requires any services to be started before it works.

Using Alistair's test page (see below), I verified that ColdFusion Express and Apache (check for the feather) were both working okay.

Phew!

TO TEST IT'S WORKING

Chuck this code in any HTML editor (Notepad for example) and save it as index.cfm.

Then try and call it up from your local drive using http://localhost/index.cfm.

<html>
<head>
<title>TT380 ColdFusion Test Page</title>
</head>
<body>
<cfoutput>
<p>Today is #DateFormat(now())#</p>
</cfoutput>
</body>

If all is working today's date should be shown on the web page.

That's all I've got time to post just now, Stage 2 to follow soon.

Comments:
A brilliant idea you have here - it will help loads of students and potential web devs get started. I was also looking at doing something similar but then saw yours. I have just started to follow your instructions and noticed a small point that I feel you could/should change.

Under your title SERVING UP PAGES, it mentions the following URL

http://localhost/index.htm

I have just tried this and the default install of OpenSA installs the following:

http://localhost/index.html

Just a small point but changing your instructions would IMHO make things better for anyone using your guide to setup their services.

Well done - great Idea
 
Thanks for pitching in Jase, there's too much to do for little ol' me to cover all the angles here. I think your post says it all! I will need to have a look at OpenSA myself when I get the chance.

I'll leave your post here as additional guidance if that's okay.
 
like tumbler and tipsy days hopefully we will remain in high spirits. well, good day
 
Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?