Jump to content

USAF MARS

Members
  • Posts

    2
  • Joined

  • Last visited

USAF MARS's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thinking that the file had become somehow corrupted during the FTP transfer, I created a new file HelloWorldTest.pl from cPanel which was essentially the same as HelloWorld.pl with the typo fixed. I initially forgot to set the permission from 644 and got the same errors. I set the permissions to 755 and it now works. Your new file, HelloWorld2.pl still does not work for me either I'll need to do a bit more experimentation, but it would seem that DreamWeaver's FTP may have corrupted the file. Is it possible that the file was sent in binary rather than text?
  2. If this is the wrong forum to post this, I apologize. OK, I've got to be doing something really stupid and probably extremely obvious to everyone else. Please point out my stupid error(s)........... Going to http://usafmars.helio-host.org/cgi-bin/HelloWorld.pl produces: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@usafmars.heliohost.org 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. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.#!/usr/bin/perl --------------------------------------------------------------------------------------- The error log has these entries: [Fri Oct 31 12:32:43 2008] [error] [client 69.179.109.186] File does not exist: /home/usafmars/public_html/500.shtml [Fri Oct 31 12:31:57 2008] [error] [client 69.179.109.186] File does not exist: /home/usafmars/public_html/404.shtml --------------------------------------------------------------------------------------- Here is the Perl program -- pretty simple, but only used for testing. it's in the cgi-bin folder and has protection set to 755. cPanel reprts HelloWorld.pl as an Application/pl #!/usr/bin/perl # # Program to do the obvious # print "Context-type: text/html\n\n"; print 'Hello world.'; # Print a message
×
×
  • Create New...