Home > Archive > PERL Miscellaneous > March 2004 > Very new to perl
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| auntie_biotic 2004-03-31, 6:40 pm |
| First of all sorry if this is the wrong place to post this question.
I have a message board on my site at present, but it contains adverts which
I would rather not have and am trying to build my own
I had never heard of perl before yesterday. However, I managed to adjust
the pl.file for my guestbook which appears to work ok.
For the life of my I cannot tell what I have done wrong in my message board
pl.file. I have placed my perl files in cgi-bin.
When I click on my message board
http://www.tbandu.co.uk/wwwboard/wwwboard.html
everything appears ok. After trying to post a message I receive the
following message.
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, webmaster@tbandu.co.uk 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."
I think I have messed up one of three lines of code. Could you please tell
me I have correctly adapted them
1. <form method=POST action="http://your.host.xxx/cgi-bin/wwwboard.pl">
I changed this to
<form method=POST
action="http://www.tbandu.co.uk/cgi-bin/wwwboard.pl">
2. $baseurl = http://your.host.xxx/wwwboard;
I changed this to
$baseurl = http://www.tbandu.co.uk/wwwboard;
3. $cgi_url = http://your.host.xxx/cgi-bin/wwwboard.pl;
I changed this to
$cgi_url = http://your.host.xxx/cgi-bin/wwwboard.pl;
I hope someone will be able to help.
Thanks in advance
--
auntie_biotic
http://www.tbandu.co.uk
| |
| auntie_biotic 2004-03-31, 6:40 pm |
| PS my third line of confusing perl is
3. $cgi_url = http://your.host.xxx/cgi-bin/wwwboard.pl;
I changed this to
$cgi_url = http://www.tbandu.co.uk/cgi-bin/wwwboard.pl;
rather than stated in previous mail
sorry!!!!!
"auntie_biotic" <auntie_biotic@tbandu.co.uk> wrote in message
news:c4fi3r$jea$1@news7.svr.pol.co.uk...
> First of all sorry if this is the wrong place to post this question.
>
> I have a message board on my site at present, but it contains adverts
which
> I would rather not have and am trying to build my own
> I had never heard of perl before yesterday. However, I managed to adjust
> the pl.file for my guestbook which appears to work ok.
> For the life of my I cannot tell what I have done wrong in my message
board
> pl.file. I have placed my perl files in cgi-bin.
>
> When I click on my message board
> http://www.tbandu.co.uk/wwwboard/wwwboard.html
> everything appears ok. After trying to post a message I receive the
> following message.
>
> "Internal Server Error
> The server encountered an internal error or misconfiguration and was
unable
> to complete your request.
> Please contact the server administrator, webmaster@tbandu.co.uk 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."
>
>
> I think I have messed up one of three lines of code. Could you please
tell
> me I have correctly adapted them
>
> 1. <form method=POST action="http://your.host.xxx/cgi-bin/wwwboard.pl">
> I changed this to
> <form method=POST
> action="http://www.tbandu.co.uk/cgi-bin/wwwboard.pl">
>
> 2. $baseurl = http://your.host.xxx/wwwboard;
> I changed this to
> $baseurl = http://www.tbandu.co.uk/wwwboard;
>
>
> 3. $cgi_url = http://your.host.xxx/cgi-bin/wwwboard.pl;
> I changed this to
> $cgi_url = http://your.host.xxx/cgi-bin/wwwboard.pl;
>
> I hope someone will be able to help.
> Thanks in advance
> --
> auntie_biotic
> http://www.tbandu.co.uk
>
>
>
| |
| John Bokma 2004-03-31, 6:40 pm |
| auntie_biotic wrote:
> First of all sorry if this is the wrong place to post this question.
If in doubt, make sure before you post.
> "Internal Server Error
> The server encountered an internal error or misconfiguration and was unable
> to complete your request.
> Please contact the server administrator, webmaster@tbandu.co.uk 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."
Did you read that last line of useful advice, or just ignored it? If you
did check the error_log, as you should have done, why did you not
include the message?
Did you check the script from the shell? (Using for example PuTTY to
connect to the server secure?) Where did you get this script?
Also note that many CGI scripts are crap & unsecure. Are you able to
understand the risks and able to see if your script falls in the c & u
category?
> 2. $baseurl = http://your.host.xxx/wwwboard;
> I changed this to
> $baseurl = http://www.tbandu.co.uk/wwwboard;
>
> 3. $cgi_url = http://your.host.xxx/cgi-bin/wwwboard.pl;
> I changed this to
> $cgi_url = http://your.host.xxx/cgi-bin/wwwboard.pl;
Both lines are wrong. Read on Perl scalars and strings for more
information. Also, copy lines in your posting, donīt type what you think
was there, I see no change in 3. (except 2 more spaces).
And yes, I think this is a c and maybe even a c & u script :-D.
--
John personal page: http://johnbokma.com/
Freelance Perl / Java developer available - http://castleamber.com/
| |
| auntie_biotic 2004-03-31, 7:37 pm |
| Thanks for reply John I feel well and truly told off and apolise for
annoying you.
"John Bokma" <postmaster@castleamber.com> wrote in message
news:406b4e60$0$24352$58c7af7e@news.kabelfoon.nl...
> auntie_biotic wrote:
>
>
> If in doubt, make sure before you post.
>
unable[color=darkred]
inform[color=darkred]
that[color=darkred]
log."[color=darkred]
>
> Did you read that last line of useful advice, or just ignored it? If you
> did check the error_log, as you should have done, why did you not
> include the message?
>
> Did you check the script from the shell? (Using for example PuTTY to
> connect to the server secure?) Where did you get this script?
>
> Also note that many CGI scripts are crap & unsecure. Are you able to
> understand the risks and able to see if your script falls in the c & u
> category?
>
>
> Both lines are wrong. Read on Perl scalars and strings for more
> information. Also, copy lines in your posting, donīt type what you think
> was there, I see no change in 3. (except 2 more spaces).
>
> And yes, I think this is a c and maybe even a c & u script :-D.
>
> --
> John personal page: http://johnbokma.com/
>
> Freelance Perl / Java developer available - http://castleamber.com/
| |
| Anna Seg 2004-03-31, 7:37 pm |
| auntie_biotic wrote:
> Thanks for reply John I feel well and truly told off and apolise for
> annoying you.
Auntie, you should not take it personaly. Also, you should not top-post.
Go ahead and post the real lines of code from the perl script you tried
to adapt (as John suggested), and the error log messages.
It may be as simple as (note the qutoes) this, but it is hard to without
the whole picture:
$baseurl = 'http://www.tbandu.co.uk/wwwboard';
$cgi_url = 'http://www.tbandu.co.uk/cgi-bin/wwwboard.pl';
-a-
| |
| Matt Garrish 2004-03-31, 7:37 pm |
|
"auntie_biotic" <auntie_biotic@tbandu.co.uk> wrote in message
news:c4fi3r$jea$1@news7.svr.pol.co.uk...
>
> First of all sorry if this is the wrong place to post this question.
>
You can try any Perl group you like, but you're going to get the same
answers. No one is interested in helping you modify code you didn't write
and. from what you've posted. that is most likely crap anyway. If you're
serious about learning Perl, make an effort to find your problem rather than
post urls you think might be wrong. If you're just looking for Perl scripts
and have no interest in learning the language, do the Web a favour and go
here instead: http://nms-cgi.sourceforge.net/
Matt
| |
| Gunnar Hjalmarsson 2004-03-31, 8:33 pm |
| auntie_biotic wrote:
> First of all sorry if this is the wrong place to post this
> question.
>
> I have a message board ...
Why are you asking this same question in more than one group?? Stop
doing so!
> After trying to post a message I receive the following message.
>
> "Internal Server Error
> ...
The missing quotes have been pointed out in both groups. If correcting
that wouldn't be enough, add this line somewhere in the beginning of
the script:
use CGI::Carp 'fatalsToBrowser';
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
| |
| Tore Aursand 2004-03-31, 10:32 pm |
| On Wed, 31 Mar 2004 23:52:39 +0100, auntie_biotic wrote:
> "Internal Server Error
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
> Please contact the server administrator, webmaster@tbandu.co.uk 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."
Excactly. More information about your error may be available in the
server's error log. What does it say?
> 2. $baseurl = http://your.host.xxx/wwwboard;
>
> I changed this to
> $baseurl = http://www.tbandu.co.uk/wwwboard;
>
>
> 3. $cgi_url = http://your.host.xxx/cgi-bin/wwwboard.pl;
>
> I changed this to
> $cgi_url = http://your.host.xxx/cgi-bin/wwwboard.pl;
This isn't Perl.
--
Tore Aursand <tore@aursand.no>
"The road to hell is full of good intentions." -- Bruce Dickinson
|
|
|
|
|