Lunarpages Web Hosting Forum

Scripting Languages Hosting Help => C++ / PERL / CGI Support => Topic started by: 9x23w on January 18, 2005, 09:24:12 AM

Title: Page cannot be displayed
Post by: 9x23w on January 18, 2005, 09:24:12 AM
Uploaded this simple program using ftp ascii:

#!/usr/bin/perl

print "hello\r\n";

Changed permission to755.  When I try to run from the web I keep getting 'Page cannot be displayed'.  I am on Electra, does LP have to turn Perl on or is this just something simple I am missing?  

Thanks!
Title: Page cannot be displayed
Post by: GMTurner on January 18, 2005, 12:41:33 PM
Without a little more info, can't say for sure... can you give a link to where the page is so we can see what's happening?
Title: Page cannot be displayed
Post by: 9x23w on January 18, 2005, 12:50:53 PM
http://roihost.net/cgi-bin/p1.pl

Thanks!
Title: Page cannot be displayed
Post by: 9x23w on January 27, 2005, 02:27:43 PM
Help anyone?
Title: Page cannot be displayed
Post by: Pete on January 27, 2005, 05:49:48 PM
Hi9x23w, Pete waves(http://www.x-visions.co.uk/gifs/wavey2.gif)

I guess you got this sorted out as I get a "hello" on that page :thumb:
Title: Page cannot be displayed
Post by: 9x23w on January 27, 2005, 07:19:27 PM
Yes, finally figured it out that u need to print "Content-type: text/html\r\n\r\n" first.  I've been using PHP for years & it never occurred to me that Perl would need that.  

I appreciate you looking into it for me - thanks.