Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 79691 invoked by uid 500); 10 Sep 2002 17:05:57 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 79678 invoked from network); 10 Sep 2002 17:05:57 -0000 Received: from skyway.usask.ca (128.233.1.29) by daedalus.apache.org with SMTP; 10 Sep 2002 17:05:57 -0000 Received: from CONVERSION-DAEMON.sask.usask.ca by sask.usask.ca (PMDF V6.1-1 #40947) id <01KMC0M7OXRK93BNDY@sask.usask.ca> for users@httpd.apache.org; Tue, 10 Sep 2002 11:05:59 -0600 (CST) Received: from abyss.usask.ca ("port 4998"@abyss.usask.ca [128.233.1.4]) by sask.usask.ca (PMDF V6.1-1 #40947) with ESMTP id <01KMC0M7JC7S93CEJS@sask.usask.ca> for users@httpd.apache.org; Tue, 10 Sep 2002 11:05:57 -0600 (CST) Received: from CONVERSION-DAEMON.abyss.usask.ca by abyss.usask.ca (PMDF V6.0-24 #40947) id <01KMC0M1WFF4923SCG@abyss.usask.ca> for users@httpd.apache.org; Tue, 10 Sep 2002 11:05:54 -0600 (CST) Received: from usask.ca ([128.233.1.32]) by abyss.usask.ca (PMDF V6.0-24 #40947) with ESMTPA id <01KMC0M0PC7Y9259HE@abyss.usask.ca> for users@httpd.apache.org; Tue, 10 Sep 2002 11:05:48 -0600 (CST) Date: Tue, 10 Sep 2002 11:05:43 -0600 From: Denise Pederson To: users@httpd.apache.org Message-id: <3D7E2667.1050808@usask.ca> MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_D9e8KV8pXLKS8SULHiiXlw)" X-Accept-Language: en-us User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: [users@httpd] VMS 7.3 and Perl --Boundary_(ID_D9e8KV8pXLKS8SULHiiXlw) Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT We have just successfully installed Compaq Secure Web Server V1.2 (based on Apache) on an Alpha running VMS7.3. We have Perl 5.6.1 installed and installed the Mod_Perl 1.25. Since there is very little documentation on how to get Mod_Perl configured correctly on VMS, I'm wondering if anyone out there is actually running CSWS and Mod_Perl. The Test CGI script works as a DCL command file. In httpd.conf we added: AddHandler cgi-script .pl AddHandler cgi-script .com It also contain the include statement for mod_perl.conf Include /apache$root/conf/mod_per.conf And enabled ExecCGI. Options +ExecCGI AllowOverride None Order allow,deny Allow from all Since in unix the shell reads the first line for the document looking for the Shebang ( #!/usr/bin/perl) to indicate that its a perl script and should be run under Perl. So we tried putting the $ perl sys$input at the start for the Perl script and if run from the DCL prompt the script executes fine. $ perl sys$input #!/usr/bin/perl print "Content-type: text/html\r\n\r\n"; printf "\n"; printf "\n"; printf "Hello, World.\n"; printf "\n"; printf "\n"; But if you try to exec it from the URL. You get: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, you@your.address and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. And the Error log reads: malformed header from s cript. Bad header=%DCL-W-IVVERB, unrecognized co: /apache$root/cgi-bin/first.pl Without the first line in the Perl Script being "$ perl sys$input" The Error log reads: "malformed header from s cript. Bad header=%DCL-W-NOCOMD, no command on l: /apache$root/cgi-bin/first.pl" How can we get apache or mod_perl to recognize it as a perl script and execute Perl with this Script?????? -- Denise Pederson, BSc. Systems Administrator Information Technology Services University of Saskatchewan VOICE: (306) 966-4877 FAX: (306) 966-2376 105 North Road Room 201, Peterson Bldg Saskatoon,Sask. S7N 4L5 EMAIL:Denise.Pederson@USask.ca --Boundary_(ID_D9e8KV8pXLKS8SULHiiXlw) Content-type: text/html; charset=us-ascii Content-transfer-encoding: 7BIT We have just successfully installed Compaq Secure Web Server V1.2 (based on Apache) on an Alpha running VMS7.3. We have Perl 5.6.1 installed and installed the Mod_Perl 1.25. Since there is very little documentation on how to get Mod_Perl configured correctly on VMS, I'm wondering if anyone out there is actually running CSWS and Mod_Perl.

The Test CGI script works as a DCL command file.

In httpd.conf we added:
     AddHandler cgi-script .pl
      AddHandler cgi-script .com

It also contain the include statement for mod_perl.conf
    Include /apache$root/conf/mod_per.conf

And enabled ExecCGI.
     <Directory "/*/*/public_html">
    Options +ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

Since in unix the shell reads the first line for the document looking for the Shebang ( #!/usr/bin/perl) to indicate that its a perl script and should be run under Perl.

    So we tried putting the $ perl sys$input at the start for the Perl script and if run from the DCL prompt the script executes fine.

$ perl sys$input
#!/usr/bin/perl
print "Content-type: text/html\r\n\r\n";
printf "<html>\n";
printf "<body>\n";

printf "Hello, World.\n";

printf "</body>\n";
printf "</html>\n";

But if you try to exec it from the URL. You get:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, you@your.address and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

And the Error log reads:

malformed header from s
cript. Bad header=%DCL-W-IVVERB, unrecognized co: /apache$root/cgi-bin/first.pl

Without the first line in the Perl Script being "$ perl sys$input"
 The Error log reads:

"malformed header from s
cript. Bad header=%DCL-W-NOCOMD, no command on l: /apache$root/cgi-bin/first.pl"

How can we get apache or mod_perl to recognize it as a perl script and execute Perl with this Script??????

-- 
Denise Pederson, BSc.
Systems Administrator
Information Technology Services
University of Saskatchewan
VOICE:	(306) 966-4877
FAX:	(306) 966-2376
105 North Road
Room 201, Peterson Bldg
Saskatoon,Sask. S7N 4L5
EMAIL:Denise.Pederson@USask.ca
--Boundary_(ID_D9e8KV8pXLKS8SULHiiXlw)--