Here's what my modified code looks like right now, I've taken anything out
that I thought might cause trouble with the server, and just did some basic
prints.
----------------------------------------------------------------------------
---------------------
#!/usr/bin/perl


   print "Content-type: text/html\n\n";
   print "<HTML>\n";
   print "<HEAD>\n";
   print "<TITLE>Perl Test Page</TITLE>\n";
   print "</HEAD>\n";
   print "<BODY>\n";
print "Perl Test Page\n";
print "</BODY>\n";
print "</HTML>\n";
----------------------------------------------------------------------------
-------------------

the error log on the web server spits out this line every time I try to
access my script via a browser

63.201.89.246 - - [11/Feb/2003:00:42:48 -0600] "GET /cgi-bin/schedule.pl
HTTP/1.1" 500 546

I don't know why I'm getting a 500 error since everything seems okay...the
perms are set to 755 on my file, and my isp says that the cgi-bin is
executable (I can also run other cgi scripts there without a problem).

does anyone have any other suggestions?  this is driving me nuts :)




"Dan Muey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].
com...



>
>
> Thanks George,  I thought that was something I had in earlier
> that I had accidentally deleted...I took your advice though
> and stuck that html header in there after the shebang and
> just before I printed out any html. Unfortunately your
> suggestion didn't fix the problem.  The hosting company I'm
> working with says the cgi-bin is executable, and there are
> other scripts there that run besides the fact that the

Then if you added a proper
print "Content-type: text/html\n\n";
And your isp says the script is executable then
what do the error logs say?

What does your "html header" look like?

If it runs fine from the comand line but not in a browser then you do not
have
A proper header, the rror log probably says sopmething like
"Malformed header form script"

Use the content type bit I have above, exaclty as I have it ( ie double
quotes not single )
Or use the CGI module to do it. Whatever the case you either don't have
That header or it wrong.

> permissions seem setup correctly. Please let me know if any
> of you have any other hints.  I'd like to resolve this
> problem soon if at all possible.
Don't we all? ;D

>
> thanks
>
>
> "Sam Mauntz" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]> ...
> > To all
> you perl gurus out there...
> > I've got this
> file named schedule.pl...in the interest of
> > troubleshooting my problem, I've thinned my script to the following
> > code...
> >
> > #!/usr/bin/perl
> >
> >
> >    print "<HTML>\n";
> >    print "<HEAD>\n";
> >    print "<TITLE>Perl Test Page</TITLE>\n";
> >    print "</HEAD>\n";
> >    print "<BODY>\n";
> > print "Perl Test Page\n";
> > print "</BODY>\n";
> > print "</HTML>\n";
> >
> > Here's a printout of the perms on the file...
> >
> > lsh110:~/www/cgi-bin$ ls -l schedule.pl
> > -rwxrwxr-x   1 portaven portaven      212 Feb  3 02:39 schedule.pl*
> >
> > and I know the perl path is correct because the file runs
> correctly at
> > the command line if I type perl schedule.pl
> >
> > My problem is that when I try to run it from a browser I
> get a 500 web
> > error message.  Does anyone have any ideas what might be
> causing this?
> >
> >
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to