Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

CSWS PERL routine fails to execute outside 'standard' directory

 
Peter Barkas
Regular Advisor

CSWS PERL routine fails to execute outside 'standard' directory

I'm new to CSWS PERL and having trouble trying to execute PERL routines outside of the standard directory:

dev:[VMS$COMMON.APACHE.PERL]

For example, this fails:

http://x.x.x.x/cgi-bin/perl_rules.pl

Whereas, this works:

http://x.x.x.x/perl/perl_rules.pl

As does this:

http://x.x.x.x/cgi-bin/test-cgi-vms.com/

File security is the same on both copies of perl_rules.pl.

Did I miss something in the documentation?
6 REPLIES
Wim Van den Wyngaert
Honored Contributor

Re: CSWS PERL routine fails to execute outside 'standard' directory

Your HTTP server admin can configure what you can and can not do. Check with him.

Wim
Wim
Peter Barkas
Regular Advisor

Re: CSWS PERL routine fails to execute outside 'standard' directory

Gulp, I am that server admin.
Hoff
Honored Contributor

Re: CSWS PERL routine fails to execute outside 'standard' directory

Peter Barkas
Regular Advisor

Re: CSWS PERL routine fails to execute outside 'standard' directory

Um, RTFM, always a good starting point.

The fact that perl_rules runs at all seems to me to confirm that csws_perl is working.

The fact that test-cgi-vms.com executes in the default website cgi-bin seems to me to confirm that ScriptAlias is defined correctly.

I think that the above indicates that Apache is set up OK, so CGI set up is not the issue.

I was puzzled that perl_rules does not execute whilst .com and .exes in the same directory do execute.

But now I remember from when setting up SSL, that each component has its own config and each must be coaxed in to life independently.

I'll get me to mod_perl.conf.
Peter Barkas
Regular Advisor

Re: CSWS PERL routine fails to execute outside 'standard' directory

Does PERL follow the yellow brick ScriptAlias?

No, but adding this to mod_perl.conf did the biz:


SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
Allow from all
PerlSendHeader On



How do I give myself points?
Peter Barkas
Regular Advisor

Re: CSWS PERL routine fails to execute outside 'standard' directory

Pas de lieu un que nous.