On Dec 21, 2008, at 10:02 AM, Mark Syder wrote:

>
> Can someone who's managed to get CGI working give any advice? Thanks  
> in
> advance and a Merry Christmas to all.


Here's how we do it:

In httpd.conf there's a division ScriptAlias

In general it looks like this:

ScriptAlias apparent/path/on/server /file path/to/executables/directory

So that when you call:

http://myserver/apparent/path/on/server/scriptname.cgi

it will run the script scriptname.cgi in the directory /file path/to/ 
executables/directory

If it just lists the file contents, then something's not right....it  
should either run the script or produce an error.

Second, make sure the first line of your perl program is

#!/usr/bin/perl

Or, again, you'll get an error.

That it's listing the text of the document means that Apache thinks  
this is a static html directory, not a script directory.


-- 
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Low End Mac's iMac 
List, a group for those using G3, G4, G5, and Intel Core iMacs as well as Apple 
eMacs.
The list FAQ is at http://lowendmac.com/imac/list.shtml and our netiquette 
guide is at http://www.lowendmac.com/lists/netiquette.shtml
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/imaclist?hl=en
Low End Mac RSS feed at feed://lowendmac.com/feed.xml
-~----------~----~----~----~------~----~------~--~---

Reply via email to