[ back to toc ]

cgi perl script shopping cart

Date: 2002/03/22 15:12

Q:
Hello Peter,

I am somewhat of a novice, trying to get my feet wet in web design. I
took on a project for a buddy of mine, which has been beneficial for both
of us. He got a web site set up for him, and I have had a wonderful
learning experience. The site is at www.easternconstruction.org .
After I got the site up for him, he asked if I would be able to set up a
shopping cart for him. I didn't think it would be all that hard, as I've
read about all of these perl scripts in the past, but it has turned out to
be the most difficult thing I have ever done.
I have been trying to use "Perlshop" from
www.arpanet.com/PerlShop/PerlShop.html . I have followed the directions
down to the letter. Although I have been using Frontpage for the web site,
I have used Cute FTP to upload the CGI script. I created a cgi-bin folder,
and set the chmod to 777, and 755 wherever the instructions directed me to
do so.
I still get a 500 error code, and although I have spent every spare
moment for the last four weeks, I have gotten nowhere, and for the first
time in my life I feel defeated… Can you give me some advice please. If
you go to the eastern construction site, the bottom left link on the
homepage takes you to the store that I am speaking of.
I sincerely appreciate any advice that you may be able to send my way.

Sincerely, (almost defeated)
*NAME-DELETED* *NAME-DELETED*, mailto:sunshine4us@att.net

A:
Cruising around the site I could not see any working CGI script. If
perlshop is the first CGI script you want to set up, then better try to
start with some sipler. For example try the following script:

#! /usr/bin/perl

print "Status: 200 OK\nContent-Type: text/html\n\nhello\n";

It may happen that even this script does not work, and in that case
debugging is much easier.

You certainly have read the instruction of the hosters on the pages that
you can reach from the 500 error page. It also says that you can get more
information from the 'error_log'. Did you look at it?

regards,
Peter

[ back to toc ]