CGI Script with Internal Server Error

samlee85

New Member
Messages
1
Reaction score
0
Points
0
i know this seems to be repeated .. but i cant seem to fix it... thanks in advance!!

the error i get is:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@mytestsite.x10hosting.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.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

my cgi file: (in public_html/cgi-bin/ )
#!/perl/bin/perl -wT
print "Content-type: text/html\n\n";
print "<h2>Hello, World!</h2>\n";


and i placed it in /public_html/cgi-bin/
i have check the CHMODs and they are all 755
my .htacess is default as i have not touched it and i do not know what to change.

the .htaccess file is as follows: (it is in /public_html/ )
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName mytestsite.x10hosting.com
AuthUserFile /home/samlee85/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/samlee85/public_html/_vti_pvt/service.grp
 

woiwky

New Member
Messages
390
Reaction score
0
Points
0
Try #!/usr/bin/perl -wT instead of #!/perl/bin/perl -wT.
 

oscetips

New Member
Messages
26
Reaction score
0
Points
0
yeh i use:

#!/usr/bin/perl -w
use CGI;
use Fcntl qw:)DEFAULT :flock);
use File::Temp qw/ tempfile tempdir /;
use CGI::Carp qw/fatalsToBrowser/;
 
Top