AW: Problems executing cgi under mod_perl

Hi,
what about a name based virtual host?
(If you have the possibility to manage your DNS)
As I hadn’t had the time for messing around with mod_perl and cgi
I just setup a virtual host and made CGI available there.
That worked fine.
Ritschi =B-)

Lose your dreams and you will lose your mind
Rolling Stones - Ruby Tuesday

Make sure you have something like this:

ScriptAlias <some URL i.e. /cgi-bin/> "/usr/lib/cgi-bin/"

and this:

AddHandler cgi-script .cgi

somewhere in httpd.conf.

PatrickOn Thu, 2004-02-05 at 11:52, Joachim Ritschmann wrote:

Hi,
what about a name based virtual host?
(If you have the possibility to manage your DNS)
As I hadn’t had the time for messing around with mod_perl and cgi
I just setup a virtual host and made CGI available there.
That worked fine.


Ritschi =B-)

Lose your dreams and you will lose your mind
Rolling Stones - Ruby Tuesday

-----Ursprüngliche Nachricht-----
Von: David M Dennis [mailto:dmd@speakeasy.org]
Gesendet: Donnerstag, 5. Februar 2004 17:34
An: rt-users@lists.fsck.com
Betreff: [rt-users] Problems executing cgi under mod_perl

Dear RT,

While trying to use cgi scripts I’ve written I seem to have stumbled
on a whole issue, hopefully someone can point me in right direction.

I have a perl cgi script that runs fine from command line.

When I put the cgi in /usr/lib/cgi-bin, which is referenced
by httpd.conf
in the usual way, it instead of executing attempts to
download the script
to my browser, which isn’t a mime-type issue (I don’t think?) because
it works that way regardless of test browser, and other servers I have
run cgi fine.

OK so thats not it. But what is? The apache I’m running is 1.3.29 on
debian, loaded up with the list of modules RT requires. So I
think that
means mod_perl and a lot of others.

I am currently reading that
(http://www.the-labs.com/ModPerl/ModPerl_Guide/porting.html) there are
whole entire books on the subject of making cgi run under mod_perl .

Can someone help out with why my script won’t seem to run on my server
when other perl will, and when my script will run from command line?

Thanks!

±------------------------


rt-users mailing list
rt-users@lists.bestpractical.com
http://lists.bestpractical.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at
http://fsck.com/rtfm


rt-users mailing list
rt-users@lists.bestpractical.com
http://lists.bestpractical.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm