FAQ Home
Show all FAQs
My shopping cart (cart.pl or ssl.pl) says, "500 Internal Server Error"? How can I fix it?
To test the script, point your browser at it like so:
http://www.YourName.com/cgi-bin/cart.pl?test
1. Check the file permissions for cart.pl and the cgi-bin directory that they are 755. Chmod the cart.pl script and the cgi-bin directory 755 if necessary (if your host is Unix).
2. Was the script recently re-uploaded to the server? Upload the cart.pl script in ASCII format and not binary format.
3. Are you trying to run the cart.pl script on a domain that it is not registered for use on? If you are moving the cart to a new server, the cart will work after the domain name has been transferred.
4. Some servers require a different shebang line. change the first line in the cart.pl script to:
#!/usr/local/bin/perl
and if that doesn't work, try:
#!/usr/bin/perl5
and if it still doesn't work, change it back to:
#!/usr/bin/perl
5. Still not working? Ask your host if they support Perl.
Dansie FAQ Wizard 2.0 http://www.dansie.net