|
| A R C H I V E D M E S S A G E |
|
Subject: internal error |
| Posted: 04/15/2004 at 5:17:19 am |
| By: lirsie |
| I get this message
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, postmaster@postaccess.com 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 use portland.co.uk and they say
Even the simplest cgi written in shell (not Perl) must start:
#!/bin/ksh
echo "Content-type: text/html "
Otherwise it will error with bad headers.
Where do I put this bit please? | |
|
|
Subject: Re: internal error |
| Posted: 04/15/2004 at 6:13:10 am |
| By: Seth Knorr |
| Ok what they told you is only have true.
Firstly, yes you do need to start with the correct path to perl. Generaly it is: #!/usr/bin/perl
HOWEVER, as they said (WITH OUT SAYING IT) on your server it is: #!/bin/ksh
So open up bizmail.cgi and replace the first line containing: #!/usr/bin/perl and use: #!/bin/ksh
INSTEAD.
2. THE NEXT STATEMENT THEY MADE WAS INCORECT.
A. echo ""; is not even in Perl it is used in PHP.
B. You only use "Content-type: text/html" if you are going to print something to a page. Until you actualy print something, there is no need to use "Content-type: text/html".
C. For your hosts sake, the proper way to print this is:
print "Content-type: text/html\n\n";
Seth | |
|
|
Subject: Re: internal error |
| Posted: 04/15/2004 at 7:31:00 am |
| By: lirsie |
| thanks very much for your quick response Seth. brilliant. I have replaced the path but unfortunately I still get a 500 internal error aaaaaaaaah! | |
|
|
Subject: Re: internal error |
| Posted: 04/15/2004 at 9:37:01 am |
| By: Seth Knorr |
| It could then be a couple of things:
1. did your remember the \ before the @ sign when configuring the send to and cc to email address.
2. Did you upload the MIME folder to the cgi-bin and chmod the MIME folder and Lite.pm which is located in this folder to 777.
These are the first basics, also have you changed the script in anyway other than what you are supposed to configure. Make sure you did not acidently delete any code.
Also if you are on windows server, you will need to download and configure the windows version of the script.
Also if none of this works, or you already checked everything and it is still not working, check with your host and ask them to get you what the error log says, This will enable me to realy pin point the problem.
Seth
| |
|
|