Gossamer Forum
Home : General : Perl Programming :

Test if perl and cgi-bin is set up ok?

Quote Reply
Test if perl and cgi-bin is set up ok?
Hi,

I've run perl/cgi scripts on a shared server for a few years and recently set up and configured my own server.

I installed two of my old cgi scripts on my new server but can't get either of them to run.

Is there a way I can check to see if I have perl and my cgi-bin set up correctly? I use Red Hat Linux 7.3, perl v5.6.1 and Apache 1.3.23 web server software.

Any suggested linux commands or settings info for my apache httpd.conf would be appreciated.

ALso, do I need mod_perl to run cgi scripts?
Quote Reply
Re: [nadsab] Test if perl and cgi-bin is set up ok? In reply to
1) Check your Perl path in your cgi scripts and verify your Perl path on your server.

2) In terms of mod_perl, depending on what your scripts depended upon in the past, not necessarily. Meaning that if your scripts ran fine without mod_perl than you don't need it on your new server.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] Test if perl and cgi-bin is set up ok? In reply to
Yes I did check the path and it's OK - /usr/bin/perl, and the path on the scripts is OK too, still does not work.
Quote Reply
Re: [nadsab] Test if perl and cgi-bin is set up ok? In reply to
What does your error log say?

Apache, by default should allow cgi scripts to run in the cgi-bin. Have you changed any settings?