Gossamer Forum
Home : General : Perl Programming :

offline cgi scripting?

Quote Reply
offline cgi scripting?
How do I develop CGI Perl scripts offline on a normail windows 98 PC?
I downloaded and installed ActivePerl and PWS4, but i am stumped! Can anyone help me so I can write CGI scripts without having to upload them to my hosted server everytime i make a change.

Thankyou anybody, I am getting desperate!

Joel Moss
http://www.homepagetools.com
Quote Reply
Re: offline cgi scripting? In reply to
If you want to do it in a regular browser window you'll need to install a webserver. The most popular I've seen used are Xitami, Microflot Personal Server (Ugh!) and Apache. I use Apache and swear by it, but other people will swear by theirs as well. However, I think the real advantage of Apache is that your host will almost definitely be running it too, so it gives you the ability to play around with it locally and see the possibilities/limitations.

You can get Apache from http://www.apache.org/httpd.html . I don't know where you'll get the others, but they shouldn't be too hard to find. if you have problem's with Perl after you've installed a server, come back then and someone will help you out.

adam

[This message has been edited by dahamsta (edited October 02, 1999).]
Quote Reply
Re: offline cgi scripting? In reply to
yea.. but also you will need to get win32 perl.exe to run perl..

i always do perl offline unless someone else wants to see it.. you can also have your administration offline (for links sql) so no one could hack into your admin online..

jerry
Quote Reply
Re: offline cgi scripting? In reply to
Joel,

My apologies, I didn't notice that you'd mentioned that you had install PWS4, which I presume is Microflot's Personal Server. When it comes to PWS, I'm afaid I can't help you, as I've never run it. However, as far as I can remember, some other who visit here do, so you should get an answer.

I still heartily recomment Apache though, and should you decide to go for Apache and the Activestate port of Perl, I'll surely do my best to help you.

Cheers,
adam
Quote Reply
Re: offline cgi scripting? In reply to
Will Apache work on W98?

I already have Activestate perl for win32 installed, so thats OK.

Do they tell you how to run cgi scripts?

Thanks again.
Quote Reply
Re: offline cgi scripting? In reply to
Well after you have installed Apache webserver which is being used by many including me. All you have to do is start the console (Server), point your browser to either http://localhost/ or http://127.0.0.1/ . This will load your offline site so your cgi scripts will run as if they are online. But, you have to swith off the flock if the script has it because if not, 500 error will appear.
Quote Reply
Re: offline cgi scripting? In reply to
I have installed Apache & Perl. Apache is fine but when I call up a .cgi or .pl file in my browser I get an error. The error logs says no file exists. Any Help?

------------------
T. Torrez
Quote Reply
Re: offline cgi scripting? In reply to
I've gotten past the errors, but now when I run admin.cgi, it opens a downloading file box. I did get some smaller cgi/pl files to run OK. Am I missing something?

------------------
T. Torrez
Quote Reply
Re: offline cgi scripting? In reply to
Try http://www.jlk.net/apache/

It will help you get perl running through apache... Excellent resource.

--Cade