No subject
Fri Nov 19 08:05:59 EST 2021
chmod 755 darwinEngine myCGIscript.cgi
4) from command line run
ls -l to check on your permissions which should now read
rxw r-w r-w for both files
Which means: owner can read, execute and write, groups can read and write
only and the public/world can read and write only.
5) See http://mitchellonline.pasco.k12.fl.us/training/metacardcgi.htm
For more detailed explanation (Note his explanation uses Metacard...and fyi
you do not need the tools, home stack.. Only the engine is required)
6) in your browser enter
http://my.machine.ip/cgi-bin/test.cgi
To test.
7) Sample test script below. The first line is critical. It can be either
#! /Library/WebServer/CGI-Executables/darwinEngine ## for clarity
on startup
put "Hello" into buffer
put "Content-Type: text/html" & cr
put "Content-Length:" && the length of buffer & cr & cr
put buffer
end startup
Or the first line can be simply
#!darwinEngine ## no slash at the beginning,
If the above works you can skip the following step
8) If you find your script is not always running every time it is called you
may need to open this file in BBEdit by looking for hidden files in the
root directory: (very carefully!)
/etc/http/httpd.conf
And uncomment this line:
# AddHandler cgi-script .cgi [becomes:]
AddHandler cgi-script .cgi
Go to System preferences and turn web Sharing and off and then on again to
reboot Apache to get Apache to load the new httpd.conf
Now, this should not be necessary, but may be... Try without first. This
will also allow you to place the engine and scripts in a cgi-bin anywhere
else on your hard drive (in your "Sites" directory for example) But there
are security issues if you do the latter: go to
http://www.macdevcenter.com/pub/a/mac/2001/12/14/apache_two.html
For more information and also a simple guide to using terminal.app if you
are complete unix newbie. If you have more questions, post them to the list.
END PRIMTER ON INSTALLING DARWIN TO RUN AS FACELESS CGI ENGINE ON MAC OS X
LOCAL MACHINE
Om shanti,
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
More information about the use-livecode
mailing list