Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: What did i do to CGI.pm?

by Fastolfe (Vicar)
on Jan 05, 2001 at 04:14 UTC ( #49922=note: print w/replies, xml ) Need Help??


in reply to What did i do to CGI.pm?

It looks like Apache is running your script under mod_perl. You can probably get around this by placing your script in the server's cgi-bin directory or perhaps just changing its extension to ".cgi". Looks like your Apache server is set up to treat any file with a .pl extension as a mod_perl file, which isn't a straightforward CGI script.

Update: As merlyn notes, the root cause is with the use of Link, but the reason that error seems obfuscated and the method of relaying the message is due to the fact that mod_perl (well, Apache::Registry) is taking over execution of the script. In all likelyhood, so long as caveats addressed in documents like http://perl.apache.org/dist/mod_perl_traps.html are observed, this script should still run OK.

Replies are listed 'Best First'.
Re: Re: What did i do to CGI.pm?
by vaevictus (Pilgrim) on Jan 05, 2001 at 04:16 UTC
    You're saying the mod_perl isn't CGI.pm compatible?
      No, I'm saying plain-vanilla CGI.pm scripts are not always mod_perl-compatible, but they can be made to be. See http://perl.apache.org/dist/mod_perl_traps.html. Your precise problem is described and explained about 1/3 of the way down under "Perl Modules and Extensions".
Re: Re: What did i do to CGI.pm?
by vaevictus (Pilgrim) on Jan 05, 2001 at 04:20 UTC
    changing the extension didn't affect the output, except for the logfile which refers to index.cgi now...
      Check your web server's configuration and see if you can figure out what isn't being treated as a mod_perl file. You may have to just put this in your server's /cgi-bin/ directory, or modify your public_html environment slightly with a .htaccess file that excludes your directory (or certain file extensions) from classifying these files as mod_perl files.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://49922]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2022-05-21 16:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?