bleerigsby

Member
Aug 14, 2002
11
0
151
When I try and runn my test.cgi script I get an internl server error! Everything else seems to be working fine. Any idea of what could cause this?
 

ehsan

Well-Known Member
Dec 11, 2001
185
0
316
make sure you upload the script as ASCII NOT binary
and then give it a run permission

sometimes thats what every one forgets, maybe yours is the same thing:)
 

bleerigsby

Member
Aug 14, 2002
11
0
151
I tried what you said and still getting error. I also tried /scripts/fixsuexeccgiscripts. But still get the 500 internal server error
 

parag

Well-Known Member
Aug 16, 2001
115
0
316
[quote:06cc85b02f][i:06cc85b02f]Originally posted by bleerigsby[/i:06cc85b02f]

I tried what you said and still getting error. I also tried /scripts/fixsuexeccgiscripts. But still get the 500 internal server error[/quote:06cc85b02f]

can you give us the url - and what script is it?

best regards
Parag
 

bleerigsby

Member
Aug 14, 2002
11
0
151
http://www.groupffa.com/cgi-bin/test.cgi

It is just a test script that puts welcome in big letters if it works
 

ehsan

Well-Known Member
Dec 11, 2001
185
0
316
Thats what I would do:

I will first delete the file from server,
then I will make sure script is correct,
include path is correct in script

then I will upload the script using wsftp(or ..) mode ASCII.
then will give it a 755 perm.

If you still had a problem shoot me a pm containing your script.
 

SHSaeed

Well-Known Member
May 9, 2002
243
0
316
If you have suExec enabled, even the directory the script is in needs to be chmod 755. If it still doesn't work, run the script and then do 'tail /usr/local/apache/logs/suexec_log' to see if there are any errors there. Also, I would double check the path to perl (first line of your script).
 

shaun

Well-Known Member
PartnerNOC
Verifed Vendor
Nov 9, 2001
702
1
318
San Clemente, Ca
cPanel Access Level
DataCenter Provider
Twitter
#!/usr/bin/perl

print &content-type: text/html\n\n&;
print &Welcome&;


Done forget the print &content-type: text/html\n\n&; or it wont work.... if you wanted to make the text larger you could just do like....

#!/usr/bin/perl

print &content-type: text/html\n\n&;
print &&p&&font size=\&7\&&Welcome&/font&&/p&&;


or

#!/usr/bin/perl

print &content-type: text/html\n\n&;
print '&p&&font size=&7&&Welcome&/font&&/p&';


Make sure the script is owned by the correct user and has the perms of 750 (755 will work but i dont like 755 because of security reasons).
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
The first place to look is at your error log. What does it say? It's better to start there than to have everybody take guesses at what the issue might be.