Internal Server error!!!!!!!!!!!!1

They have: 23 posts

Joined: Jan 2001

I am trying to install some cgi files on a server and I keep getting the damned "Internal Server Error". I have a "public_html" directory and a "cgi-exec" folder. There is a ".htaccess" file that looks like this...

-----------
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

order deny,allow
deny from all
allow from all

order deny,allow
deny from all

AuthName www.furniturebydovetail.com
AuthUserFile /export/home/d/dovetail1/public_html/_vti_pvt/service.pwd
AuthGroupFile /export/home/d/dovetail1/public_html/_vti_pvt/service.grp
-----------

I am using a simple file "test.cgi" in the cgi-exec dir with permissions set to 755...

--------
#!/usr/local/bin/perl

print "Content-type:text/html\n\n";
print <

Test

It's Working!

HTMLCode
--------

What the hell am I doing wrong?

Any help would be great!

Thanks
G

Thanks
G

They have: 488 posts

Joined: Feb 2000

Try uploading a new file to the server, the file could probably be corrupt as it sometimes happen and you have to chmod the directory/subdirectory to 755 where the file resides in most cases.

Regards,
NSS

They have: 23 posts

Joined: Jan 2001

Tried all that with no change. So I took my files and installed them on different server. They work fine. Called tech support and told them about the problem. They said sorry your on your own.

Needless to say I am getting a new hosting site asap.

Thanks
G

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Maybe the shebang is wrong.

http://www.scriptsolutions.com has a script called perldiver that will track all the info you need to run perl properly.

And it really isn't odd for host not to help with cgi scripting -- if you don't know what you are doing, you should get help before blaming the host for helping you. Troubleshooting cgi scripts is way outside of their contract with you.

Also, make sure you are uploading your scripts in ASCII. If you upload in binary they won't work.

I hope this helps a bit,

Smiling suzanne

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

this:
print "Content-type:text/html\n\n";
should be this:
print "Content-type: text/html\n\n";

note the space....
May not make a difference, but all my CGIs have that space.

Mark Hensler
If there is no answer on Google, then there is no question.

They have: 16 posts

Joined: Jan 2001

Try a script that you *know* works in that .htaccess protected directory.

I'm no expert on UNIX and .htaccess, but the IndexIgnore line looks wrong. Surreally enough, an error in an .htaccess file will produce ISE500's on any script called under it.

my $friends = qq[=:Jilly , Andrew , Peter & Harry:=];
print &welcome($friends), "2"; my @home;
sub welcome{my $s=shift; $s=~s{^(=\Smiling(.+?)(\:=)$}
{$_=$2;@home=split/[&,]/;}esgx;$friends= join'me',@home;
$friends=~s{(\A|\S|\s+)([A-Z]).+?(\s|\Z)}{$2}sge;my$c=-1;
$friends=~s{(me|\Z)}{++$c;@_=(qw|ust nother erl acker|);qq!$_[$c] !;}eg; $friends}

They have: 23 posts

Joined: Jan 2001

I was right it was the hosts fault. They fixed the problem and now it all works fine.

Thanks for the help all

G

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.