Can I change the background of the blog?
VMS 7.3 and Perl
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Apache HTTP Server > VMS 7.3 and Perl 10 September 2002 20:42:17

  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

VMS 7.3 and Perl

Denise Pederson 10 September 2002 20:42:17
 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/m­od_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-IVVER­B, unrecognized co:
/apache$root/cgi-bi­n/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-NOCOM­D, no command on l:
/apache$root/cgi-bi­n/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:D­enise.Peders­on@USask.ca

Add comment
Denise Pederson 10 September 2002 20:42:17 permanent link ]
 OK, I can get a perl script to run, only if its in the [apache.perl]
directory. How do I tell it to run Perl when its not in the Perl
Directory???

--
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:D­enise.Peders­on@USask.ca




-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Apache HTTP Server > VMS 7.3 and Perl 10 September 2002 20:42:17

see also:
RE: how can I get shopping carts on my…
Image file names after publish.
Templates in Publisher
пройди тесты:
see also:
And it again I! I spoke, that I shall…
Routes on Sale!
i'm a new user!!!

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .