Running CGI's locally on OSX

Sarah sarahr at genesearch.com.au
Thu Jul 4 22:31:01 EDT 2002


This is probably a stupid question, but have you switched on Web sharing 
in the Sharing system pref?
There was an example of using OS X's web server on the list a while ago 
and it put this in the first line of the cgi:
	#!/Library/WebServer/CGI-Executables/Darwin
What is your engine's file name? I presume it is "mc" since that is what 
you use as the first line of your script.

Sarah

On Thursday, July 4, 2002, at 03:10  PM, Sivakatirswami wrote:

> OK, see previous post... I "hit the books" and was able to do the 
> following
>
> Put the Darwin engine in the two places  /Users/katir/Sites/cgi-bin/
>
> And also in the /Library/WebServer/CGI-Executables/
>
> I figured out how to use the terminal.app on OSX and went in and CHMOD
> everything to  755 (both engines in both places, the cgi-bin in my own 
> Sites
> folder and my test script below.)
>
> #! /mc
> On startUp
> Put "hello"
> End startUP
>
> If I invoke the cgi from my browser
>
> http:/my.machine.ip/~katir/cgi-bin/test-mc.cgi
>
> It just returns the ascii text of the cgi... I.e. Nothing is executed...
> Same thing happens if I change the path to the engine to:
>
> #! /Library/WebServer/CGI-Executables/mc
>
>
> Still no go...
>
> Any clues?
>
>
> Hinduism Today
>
> Sivakatirswami
> Editor's Assistant/Production Manager
> katir at hindu.org
> www.HinduismToday.com, www.HimalayanAcademy.com,
> www.Gurudeva.org, www.hindu.org
>
> Read The Master Course Lesson of the Day at
> http://www.gurudeva.org/lesson.shtml
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>





More information about the Use-livecode mailing list