Referring to the tip of the week - or of the month ;-) - I found in the metacard list a message from Mr Sivakatirswami about installing faceless Metacard or Revolution on MAX OSX machine for running CGI's ,

Now, I have a question: is this system as efficient as other scripting languages (eg PHP)?

Follows instruction from Mr Sivakatirswami about installing faceless Metacard or Revolution on MAX OSX machine for running CGI's plus some corrections. Thanks Mr Sivakatirswami. . Here it is my version:

============

SKINNY PRIMER: installing faceless Metacard or Revolution on your MAX OSX machine for running CGI's on your own machine:

0) Go to system preferences and turn on Web Sharing

1) Download the Darwin engine, untar and put it in:
/Library/WebServer/CGI-Executables

2) Put your CGI script in the same folder: but, caveat: be sure to save your
script in BBEdit as generic text with Unix endlines

3) Using Terminal.app... Navigate to CGI-Executables and then run
>From the command line:

chmod 755 darwinEngine myCGIscript.cgi

4) from command line run

ls -l to check on your permissions which should now read

rwx r-x r-x 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/httpd/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

====================













_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to