Hi,
Usually, a perl script when not set to chmod +x or as executable file will
just be treated as an ordinary text file. This may be the reason why you get
the text file instead of executing the commands inside the file. Please make
sure you:
chmod +x your_script.pl
Then try to execute first
Hello B.
From the FAQ:
My CGI/Perl Code Gets Returned as Plain Text Instead of Being Executed by the Webserver
Check your configuration files and make sure that the ExecCGI is turned on in your
configurations.
Location /perl
SetHandler perl-script
PerlHandler Apache::Registry
Hello B.
I just reread your question it is MP2. For ModPerl2 there is another answer in the FAQ:
Apache::Registry, Apache::PerlRun and Friends
Apache::Registry, Apache::PerlRun and other modules from the registry family now live
in
the ModPerl:: namespace to avoid collisions with the versions
[EMAIL PROTECTED]
cc:
03/06/2003 05:09 Subject: Re: Apache showing Perl code
Hi,
This is because your perl handler is not active.
How did you setup your apache for perl scripts under mod_perl ?
I see you're using windows ?
Are you sure mod_perl is working (check out Apache error log when it starts) ?
Take a look at the docs for Apache::Registry or Apache::PerlRun.
I