[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Re: serving CGIs



Hi.

>i presently trying to use "personal web sharing" in combination with
>netscape and macperl.

I use just the same combination.

>question 1) is there a way serve CGIs without a web server?

PWS _is_ a webserver.
You can of course run Perl scripts with MacPerl wihtout a Webserver, or
export them as MacPerl Runtimes, but I don't know about that.

>?2) if a webserver is necessary, does it have to be on the web?

Not in your case.

>?3) using "personal web sharing" on the web i am able to see my site
>but when i try to start a script it is just downloaded.  any suggestions?

Open the scripts in MacPerl, do a "Save As...", and choose "CGI Script"
as the file type.
If you are using BBEdit to write the scripts (like me), choose Export to 
-> CGI Script"
from the MacPerl menu.
Save the scripts in your webfolder as .cgi or .acgi, and you should be 
fine.

I did have exactly the same problem when I set up PWS on my Mac.

HTH,

Lasar L.

.sig _______________________________________
Lasar Liepins . lasar@liepins.de . nightmode
http://www.liepins.de/ . http://www.w42.de/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org