Web Hosting Talk







View Full Version : 500 Internal serve error :( No idea what wrong did i do. plz advise thx


Spunkyz
06-09-2002, 12:21 AM
URL : http://www.sportsbilt.com/test/test1.html
CGI Script URL : http://www.sportsbilt.com/test/index.cgi

I chmod the dir and the script to 755.

Program configs.

###############################################################################
# PROGRAM VARIABLES TO CONFIGURE BELOW
###############################################################################

#Enter your company name
$companyName = 'Sportsbilt.com';

#Enter your dot com name but do not put the http:// or www. this
#is used for the cookie that will be set
$dotCom = 'Sportsbilt.com/test/';

#Enter url to the images directory where the shopping cart images are stored.
#EX: http://www.internetcoders.com/images
#You may also use a relative url such as EX: ../../images
#Do not put a / at the end.
$imageDir = '/images';

#Point this variable to your header file
$header = 'header';

#Point this variable to your footer file
$footer = 'footer';

#This is tax on all items sold, if you choose to charge tax.
#It is required for websites that are within states where sales
#tax is normally collected put the sales percentage. Note that
#this will be multiplied against the total so use .
#EXAMPLE: .0775 for California (at the time this program was written)
$salesTax = '.0775';


below is the errors that i got from the error log.

[Sun Jun 9 00:07:43 2002] [error] [client XXX.XXX.X.XXX] File does not exist: /home/sportsbi/public_html/404.shtml
[Sun Jun 9 00:07:43 2002] [error] [client XXX.XXX.X.XXX] File does not exist: /home/sportsbi/public_html/test/$imageDir/checkOut.jpg
[Sun Jun 9 00:07:43 2002] [error] [client XXX.XXX.X.XXX] File does not exist: /home/sportsbi/public_html/404.shtml
[Sun Jun 9 00:07:43 2002] [error] [client XXX.XXX.X.XXX] File does not exist: /home/sportsbi/public_html/test/$imageDir/viewCart.jpg
[Sun Jun 9 00:07:13 2002] [error] [client XXX.XXX.X.XXX] File does not exist: /home/sportsbi/public_html/500.shtml
[Sun Jun 9 00:07:13 2002] [error] [client XXX.XXX.X.XXX] Premature end of script headers: /home/sportsbi/public_html/test/index.cgi
[Sun Jun 9 00:07:13 2002] [error] (2)No such file or directory: exec of /home/sportsbi/public_html/test/index.cgi failed

kindly advise what i should do? thanks in advance


:(

Tim Greer
06-09-2002, 12:40 AM
Originally posted by Spunkyz
[B]URL : http://www.sportsbilt.com/test/test1.html
CGI Script URL : http://www.sportsbilt.com/test/index.cgi


Knowing the URL to the script, without seeing the source, isn't going to give anyone the ability to be much help.


I chmod the dir and the script to 755.


You sound like you have a good start.

Program configs.
...



These don't help.





below is the errors that i got from the error log.

[Sun Jun 9 00:07:43 2002] [error] [client XXX.XXX.X.XXX] File does not exist: /home/sportsbi/public_html/404.shtml
[Sun Jun 9 00:07:43 2002] [error] [client XXX.XXX.X.XXX] File does not exist: /home/sportsbi/public_html/test/$imageDir/checkOut.jpg
[Sun Jun 9 00:07:43 2002] [error] [client XXX.XXX.X.XXX] File does not exist: /home/sportsbi/public_html/404.shtml
[Sun Jun 9 00:07:43 2002] [error] [client XXX.XXX.X.XXX] File does not exist: /home/sportsbi/public_html/test/$imageDir/viewCart.jpg



Check your test1.html file. Look at the path to the image files, you have left in $syntax there in raw HTML image tag calls.



[Sun Jun 9 00:07:13 2002] [error] [client XXX.XXX.X.XXX] File does not exist: /home/sportsbi/public_html/500.shtml
[Sun Jun 9 00:07:13 2002] [error] [client XXX.XXX.X.XXX] Premature end of script headers: /home/sportsbi/public_html/test/index.cgi
[Sun Jun 9 00:07:13 2002] [error] (2)No such file or directory: exec of /home/sportsbi/public_html/test/index.cgi failed

kindly advise what i should do? thanks in advance


This could be anything from poor error checking (or lack of it altogether) to not uploading the script in ASCII mode, or not having a proper header file specified. It's likely that it couldn't open a fiel that you didn't specify the correct path to or it doesn't have the correct ownership and the script is bombing out because it doesn't do proper checking to prevent this. Still, it's likely you didn't remember to transfer said CGI script in ASCII mode too.

Techark
06-09-2002, 12:44 AM
your cgi files are chmod to 755
path to perl is correct /usr/bin/perl
make sure you uploaded in asci not bin mode.

If you sitll need help PM me and I will see what I can do.

Spunkyz
06-09-2002, 01:49 AM
oh!
hehe my bad. i forgot to upload in acsi mode hehe i set my FTP upload mode to auto. hehe

thanks! its now working. :)