Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Perl CGI
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Perl CGI
Perl CGI
12-01-2008 1:32 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Sorry if this is an old subject.
I'm an experienced Perl programmer.
I'm new to plusnet.
I'm trying to get a small web application hosted.
As a basic test, I installed a perl 'hello world' script in my cgi-bin directory.
It runs fine from the command line.
Permissions are 755.
When run from a browser it produces "Internal Server Error".
As a double check, I installed the equivalent php 'hello world' script in cgi-bin.
It runs fine from the command line and in a browser.
I raised a ticket asking what I had done wrong.
They replied that it is my responsibility to understand CGI technicalities.
They also admit that a link to perl help in the CGI tutorial page does not work.
Hmmph. -:(
Any ideas.
Thank you.
I'm an experienced Perl programmer.
I'm new to plusnet.
I'm trying to get a small web application hosted.
As a basic test, I installed a perl 'hello world' script in my cgi-bin directory.
It runs fine from the command line.
Permissions are 755.
When run from a browser it produces "Internal Server Error".
As a double check, I installed the equivalent php 'hello world' script in cgi-bin.
It runs fine from the command line and in a browser.
I raised a ticket asking what I had done wrong.
They replied that it is my responsibility to understand CGI technicalities.
They also admit that a link to perl help in the CGI tutorial page does not work.
Hmmph. -:(
Any ideas.
Thank you.
Message 1 of 3
(1,030 Views)
2 REPLIES 2
Re: Perl CGI
12-01-2008 2:58 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hello
Don't understand the PERL-syntax, but this file test.pl runs happily via browser on cgi-bin:
This tutorial: http://usertools.plus.net/tutorials/id/25 includes some PERL stuff for to run webstats. This explains how to transfer the file: http://usertools.plus.net/tutorials/id/22
Hope it contains something of interest.
Nice day
Don't understand the PERL-syntax, but this file test.pl runs happily via browser on cgi-bin:
#!/usr/bin/perl -w
use strict;
use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
print "Content-type: text/html\n\n";
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">', "\n";
print "<html><head><title>Testausgabe</title>\n";
print "</head><body>\n";
print "Wenn Du das siehst, funktioniert Perl auf Deinem System !<br><br>";
print "If you see this perl works fine on your system !";
print "</body></html>\n";
This tutorial: http://usertools.plus.net/tutorials/id/25 includes some PERL stuff for to run webstats. This explains how to transfer the file: http://usertools.plus.net/tutorials/id/22
Hope it contains something of interest.
Nice day
Message 2 of 3
(195 Views)
Re: Perl CGI
12-01-2008 3:42 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I had assumed a content type of text/html, rather than inserting
it explicitly.
Thank you very much for your help.
it explicitly.
Thank you very much for your help.
Message 3 of 3
(195 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page