English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hello,
I'm trying to configure XpressCart properly for my website. But, I'm running into the familiar 500 internal server error. I'm positive that the following are correct.
1. Perl path #!/usr/bin/perl
2. File permissions
3. Upload in ascii
Only need to configure the config file.
I'll give anyone that helps fix this problem $5 via paypal.

Here's a test script for the server
http://www.vagnavs.com/cgi-bin/xpresscart/advanced-test.cgi

Here's the configuration script and the read me. I have uploaded them to a separate directory.
http://www.vagnavs.com/README.txt
http://www.vagnavs.com/config.pl

I only need the URLs and PATHS defined.
Once it is properly configured, they say to open the script and then you can start adding products. http://www.vagnavs.com/cgi-bin/xpresscart/office.cgi

2007-02-21 06:37:20 · 5 answers · asked by Thomas M 1 in Computers & Internet Programming & Design

5 answers

Typing,

perl -V

will display your current configuration. Then you'll
know what is correct.

Add the line,

use CGI::Carp qw(fatalsToBrowser warningsToBrowser);

after your initial declaration,

#!/usr/local/bin/perl

Any fatal errors will now be displayed in your browser
window.

Adding,

warningsToBrowser(1);

to your script's HTML output will display warning
messages as well.

Sometimes it's something simple, as in a malformed
line here or there. Depends what you edited the
original file with. If Windows based then watch out
for those odd control characters at the end of lines.

HTH.

PS $5.00?? What an offer! No wonder there was a
mad stampede to answer this one. ;o)

2007-02-21 07:38:50 · answer #1 · answered by Anonymous · 0 0

Double check to make sure all .pl and .cgi files are set to CHMOD 755 (the permissions) and make sure that the first line of office.cgi is the same as config.pl and advanced-test.cgi (ie: #!/usr/bin/perl) because they seem to be working fine.

Also if your host provides your Error logs I suggest going to http://www.vagnavs.com/cgi-bin/xpresscart/office.cgi and then check your Error log for the current day. Then post what it says the error for office.cgi was here. That will give us more information on what went wrong.

office.cgi says it cannot find the file SimHMAC.pm. And upload.cgi says there is an error at line 119 of config.pl. Something after dll. Try putting a \ (not a /) right before the @ sign in this line. $cc_email = 'orders@vagnavs.com';

2007-02-23 20:13:51 · answer #2 · answered by cgi man 3 · 0 0

hmmm, nicely that's somewhat capture 22 ... learn first good database layout : what tables are, a thank you to layout one conceptually, a thank you to connect tables , widespread keys and distant places keys . Then learn MySql to create those table bodily . After that, u can study manipulating the counsel in databases and queering them .At this ingredient, u'll have a good carry close of MySQL as a beginner . Now u can learn own domicile page as a programming language, and u'll understand that ur expertise of database layout and manipulation will shrink off the own domicile page discovering curve via 50% and make u a greater valuable fashion designer/programmer with a bit of luck . basically suggestion ..... good success !

2016-10-02 12:25:37 · answer #3 · answered by Anonymous · 0 0

Some Unix and Linux systems require scripts to be in Unix text format. That means \n line terminations in place of the \r\n that's used in Windows. If that applies to you, there's a utility called dos2unix that you can run (Google for it).

2007-02-21 07:43:24 · answer #4 · answered by injanier 7 · 0 0

Try saving this modified script as your "config.pl" file

_________________________________________________

# XpressCart version 1.22
# For the terms of license for this product, please see the LICENSE.txt file
## Name of your site or store
$site_name="Vagnavs.com Virtual Store, Inc.";

#####################################################
## URLs
# Base URL for the site
$site_home="http://www.vagnavs.com";
# URL to the store program
$script_url="http://www.vagnavs.com/cgi-bin/xpresscart/store.cgi";
# Full URL to store program, for linking from Authorize.Net
$script_url_full="http://www.vagnavs.com/cgi-bin/xpresscart/store.cgi";
# URL to the office program, should be secure if possible
$office_url="http://www.vagnavs.com/cgi-bin/xpresscart/office.cgi";
# URL to photo upload program
$upload_url="http://www.vagnavs.com/cgi-bin/xpresscart/upload.cgi";
# URL to the show order program. Full URL required!
$order_url="http://www.vagnavs.com/cgi-bin/xpresscart/show_order.cgi";
# URL to folder where the photos go. Note: No trailing slash
# Also note: this should be relative to the location of store.cgi
$photo_url="http://www.vagnavs.com/cgi-bin/xpresscart/photos";
#####################################################

#####################################################
## PATHS
# NOTE: Paths are relative to office.cgi, upload.cgi, etc.
# path to customer directory where individual cart info can be read and
# written. No trailing slash
$customer_folder="/usr/www/virtual/magiklair/www.vagnavs.com/cgi-bin/xpresscart/customer";
# path to authentication directory where office user session info can be read
# and written should not be web accessible for security. No trailing slash
$auth_folder="/usr/www/virtual/magiklair/www.vagnavs.com/cgi-bin/xpresscart/auth";
# path to folder where order data can be read and written should not be web
# accessible for security. No trailing slash
$order_folder="/usr/www/virtual/magiklair/www.vagnavs.com/cgi-bin/xpresscart/order";
# path to working folder where the program can read and write other files
# should not be web acessible for security. No trailing slash
$working_folder="/usr/www/virtual/magiklair/www.vagnavs.com/cgi-bin/xpresscart/working_folder";
# path to template file
$template_file="/usr/www/virtual/magiklair/www.vagnavs.com/cgi-bin/xpresscart/template.html";
# path to folder where the photos go. No trailing slash. Must be web
# accessible.
$photo_folder="/usr/www/virtual/magiklair/www.vagnavs.com/cgi-bin/xpresscart/photos";
# permissions for photos, if defined
#$photo_perms=0644;
# temp directory override; set only if necessary
#$tmpdir = '/tmp';
#####################################################

##################################################
## Security Information
# Office User Name and Password
$user_name="";
$password="";
# number of seconds to allow an idle user session
$session_time=3600;
# key number used to encrypt order numbers (must be a number)
$order_encrypt=476310;
##################################################

##################################################
## Email Information
# This program will send email via a direct connection to an SMTP server or via
# the Unix sendmail program.
# Email Method (SMTP,sendmail)
$email_method="sendmail";
# path to Unix sendmail (if applicable)
$SENDMAIL="/usr/sbin/sendmail";
# SMTP mail server
#$SMTP_SERVER="mymail.webair.com";
# web server or domain from which the shopping cart will send out email
$WEB_SERVER="vagnavs.com";
# customer service email address
$customer_service='service@vagnavs.com';
# Set to 1 to make order notification emails also *from* customer service
$order_notify_from_cs=1;
# POP server: leave empty unless using POP before SMTP authentication
$POP_SERVER='';
# Username (often an email address) for POP before SMTP authentication
$pop_user='user@vagnavs.com';
# Password associated with $pop_user if using SMTP
$pop_pass='tsmiqw79';
# Uncomment to enable SMTP AUTH LOGIN authentication
#$smtp_auth='LOGIN';
# SMTP AUTH username, if applicable
$smtp_user='';
# SMTP AUTH password, if applicable
$smtp_pass='';
##################################################

################################################
## Length of time in days to keep customer data
$customer_days=45;
################################################

################################################
## Shipping
# Calculate shipping based on... (weight,price)
$calc_shipping="weight";
# number of available shipping options (1 or more)
$ship_options=4;
# number of payment splits available for each option
$ship_splits=5;
################################################

################################################
# Real-time credit card processing
$cc_method = 'authorizenet_sim';
# Uncomment to only authorize transactions, not settle them
#$authonly = 1;
# AuthorizeNet Merchant Login ID
$loginid = ';
# AuthorizeNet Transaction Key
$txnkey = '';
# MD5 hash value set via AuthorizeNet, if applicable
$md5_secret = '';
# URL to Real Time Processor Gateway
$realtime_url = 'https://secure.authorize.net/gateway/transact.dll';
# Where to send Authorize.Net billing emails (none if blank)
$cc_email = 'orders@vagnavs.com';
# Set to 1 for Authorize.net test credit card mode, 0 for live credit card mode
$test_mode = 0;
################################################

################################################
## SKU Options
# Number of types of options available
$option_types = 3;
# Number of options per type
$option_number = 10;
# Set to one to enforce a minimum quantity
#$enforce_min_qty = 1;
################################################



################################################
## States from which customers might buy from you
## used to determine if sales tax should be calculated.
@states=("Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "District of Columbia", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming");
################################################

################################################
## Fonts and formatting
# currency symbol to use
$currency='$';
# Title to use to replace on non-product pages. Defaults to
# $site_name. Uncomment to set to nothing; uncomment and add text to customize.
#$title = "";
# Title to use to replace on product pages. Defaults to nothing.
$title_product = "";
# HTML to format page titles
$title_front="

";
$title_back="

";
# font statement for basic text inside tables
$font="";
# font statement for short display basic text
$font_short="";
# font statement for text "X items found. Display page A of Z"
$font_results = "";
# Display search results with the most recently input items at the top (Yes,No)
$reverse_order="Yes";
# Align the main photo for each product to the... (right,left) leave blank if no alignment
$photo_align="right";
# search results display columns
$display_columns=3;
# search results display rows
$display_rows=2;
# width of table that displays search results
$display_width=550;
# padding between search results
$display_padding=20;
# How many products from the same category to display on a a product page
$same_category = 8;
# HTML to use to display price. Note that "XXXX" is replaced with the price.
$price_html = '

Our Price: XXXX

';
# Footer to be displayed immediately after
$footer = '';
# Message to be displayed if cookies are required but not in use
$cookie_msg = '

NOTE: This site requires the use of cookies to keep track of the items in your cart. Please enable the use of cookies in your browser and try again.

';
# Enable "Return to Store" instead of "Continue Shopping"
#$return_to_store=1;
# Uncomment to enable two address lines instead of only one
#$address_lines=2;
# Uncomment to create a vertical layout on the checkout page
#$vertical_layout=1;
################################################

#############################################################
# Common Subroutines & Variables
# The following do not need to be modified

$product_file="$working_folder/product.txt";
$tax_file="$working_folder/tax.txt";
$shipping_file="$working_folder/shipping.txt";
$order_file="$working_folder/order.txt";
#############################################################

require "common.pl";
1;


________________________________

Copy of the properly configured script

http://www.zentu.net/modifiedscriptbyzentunix.txt

and GPG key info:

iFQEIBECABQFAkXcu30NHQBiYWNrdXAgY29weQAKCRBQrV1w1n9sGW+0AJ9WjJxM
WnhxCUY8fu36NLtwr63j1QCfd8qGXuTcOOpFPFoCccjjUUPNiuY=
=qHWR

Hope this helps.

And you can keep your $.

Took me way longer to figure out than that.

2007-02-21 08:52:05 · answer #5 · answered by indiejade 2 · 0 0

fedest.com, questions and answers