|
Posted by John D. Sanders on January 3, 2005, 4:11 pm
Please log in for more thread options
I have an Apache Web Server running and I want to use Perl as my CGI
language.
I have Matt's FormMail script running properly but when I try to
implement my own scripts I get an error.
The script I am using for testing:
#! /usr/bin/perl
use warnings;
use strict;
print "content-type: text/htmlnn";
print "<html><head><title> Current Date and Time </title>";
print "</head>n<body>";
print scalar( localtime() );
print "</body></html>";
The error I get when executing www.lovinthelord.org/cgi-bin/testing.pl:
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, sanders@lovinthelord.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.
Please any help would be appreciated.
Thanks
John
www.lovinthelord.org
|
|
Posted by ioneabu on January 3, 2005, 3:42 pm
Please log in for more thread options
I entered your script on my server and it appears to work. Browser
output:
Mon Jan 3 17:41:08 2005
wana
|
|
Posted by John D. Sanders on January 3, 2005, 4:43 pm
Please log in for more thread options ioneabu@yahoo.com wrote:
> I entered your script on my server and it appears to work. Browser
> output:
>
> Mon Jan 3 17:41:08 2005
>
> wana
>
Do you have any ideas why id does not on mine when other Perl scripts work?
|
|
Posted by A. Sinan Unur on January 6, 2005, 10:00 pm
Please log in for more thread options
> ioneabu@yahoo.com wrote:
>> I entered your script on my server and it appears to work. Browser
>> output:
>>
>> Mon Jan 3 17:41:08 2005
>>
>> wana
>>
> Do you have any ideas why id does not on mine when other Perl scripts
> work?
Because you cannot make s**t up and expect it to work!
You wrote:
> I have an Apache Web Server running and I want to use Perl as my CGI
> language.
>
> I have Matt's FormMail script running properly but when I try to
> implement my own scripts I get an error.
>
> The script I am using for testing:
> #! /usr/bin/perl
>
> use warnings;
> use strict;
>
> print "content-type: text/htmlnn";
That is not correct.
--
A. Sinan Unur
1usa@llenroc.ude.invalid
(remove '.invalid' and reverse each component for email address)
|
|
Posted by Gunnar Hjalmarsson on January 4, 2005, 12:59 am
Please log in for more thread options John D. Sanders wrote:
> I have an Apache Web Server running and I want to use Perl as my CGI
> language.
>
> I have Matt's FormMail script running
Exchange it for http://nms-cgi.sourceforge.net/scripts.shtml
> properly but when I try to
> implement my own scripts I get an error.
>
> The script I am using for testing:
> #! /usr/bin/perl
>
> use warnings;
> use strict;
>
> print "content-type: text/htmlnn";
> print "<html><head><title> Current Date and Time </title>";
> print "</head>n<body>";
> print scalar( localtime() );
> print "</body></html>";
>
>
> The error I get when executing www.lovinthelord.org/cgi-bin/testing.pl:
>
> Internal Server Error
<snip>
- Are you sure that the path to perl is correct?
- Did you upload the script in ASCII mode?
- Did you set the right permissions (probably 755)?
If that doesn't help:
http://faq.perl.org/perlfaq9.html#My_CGI_script_runs_f
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
|
| Similar Threads | Posted | | Newbie question about NTLM and web sites | August 12, 2004, 9:17 am |
| Win32::GUI newbie question re dynamic GUI building | October 6, 2005, 8:44 pm |
| CGI - POST - newbie | August 27, 2004, 9:45 am |
| Newbie help required | May 13, 2005, 4:42 am |
| Newbie & Installing NET::FTP,CGI.PM, etc. | July 7, 2005, 8:58 am |
| Newbie on using Modules | June 2, 2006, 12:28 pm |
| Image::Magick newbie | September 5, 2005, 10:19 pm |
| LWP:Simple/LWP:UserAgent (newbie) | February 24, 2005, 12:11 pm |
| newbie mod_perl efficiency | July 17, 2005, 7:43 pm |
| newbie LWP::UserAgent questions | August 13, 2006, 8:10 pm |
|