[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] last try, internal server error friendly request for help
****** message to minivend-users from "Casper" <casper@mebo.nl> ******
Hi,
I've tried to get an answer for several times now, so this is my last try...
My questions seems to be really complicated orso cause no one is able to
answer them and help me with my problems. I'll try to be very clear now,
provide you all with some more information and i really hope that it
helps...
Ok, the minivend server is finally running, i don't get the error message of
'page not found' anymore so that's history, the following problem has
occured, when i follow a link on the main page like 'products'
(browse1.html) i get a 500 internal server error, the file permissions of
the cgi files are 755 when i chmod 4755 i still get the same error chmod u+s
doesn't do it either
in the error log (wich stopped working a while ago) it says:
****************************************************************************
************************************************************************
- - - [18/July/2000:16:35:05 +0200] - - Added/changed catalog test:
>
> Directory: /opt/usr/gsmcorn/DOMAIN/HTML/catalogs/test
> Script: /cgi-bin/test.cgi
>
- - - [18/July/2000:16:35:05 +0200] - - Config 'test' from running server
(10122)
- - - [18/July/2000:16:35:05 +0200] - - Required UserTag summary not
present. Aborting catalog.
> In line 922 of the configuration file 'catalog.cfg':
> Require usertag summary
>
- - - [18/July/2000:16:35:05 +0200] - - test config error: Required UserTag
summary not present. Aborting catalog.
> In line 922 of the configuration file 'catalog.cfg':
> Require usertag summary
>
>
- - - [18/July/2000:16:35:05 +0200] - - Error reconfiguring catalog
/cgi-bin/test.cgi from running server (10122)
>
- - - [18/July/2000:16:35:05 +0200] - - Config 'test' from running server
(10122)
- - - [18/July/2000:16:35:05 +0200] - - Required UserTag reconfig not
present. Aborting catalog.
> In line 923 of the configuration file 'catalog.cfg':
> Require usertag reconfig
>
- - - [18/July/2000:16:35:05 +0200] - - test config error: Required UserTag
reconfig not present. Aborting catalog.
> In line 923 of the configuration file 'catalog.cfg':
> Require usertag reconfig
>
>
- - - [18/July/2000:16:35:05 +0200] - - Error reconfiguring catalog
/cgi-bin/test.cgi from running server (10122)
>
cache-dh1.casema.net - - [18/July/2000:16:35:39 +0200] test
/cgi-bin/test.cgi/feedback.html Runtime error: Invalid value for
ReadPermission
>
cache-dh2.casema.net - - [18/July/2000:16:35:44 +0200] test
/cgi-bin/test.cgi/index.html Runtime error: Invalid value for ReadPermission
>
cache-dh1.casema.net - - [18/July/2000:16:40:18 +0200] test
/cgi-bin/test.cgi/feedback.html Runtime error: Invalid value for
ReadPermission
>
cache-dh2.casema.net - - [18/July/2000:16:40:34 +0200] test
/cgi-bin/test.cgi/account.html Runtime error: Invalid value for
ReadPermission
>
cache-dh2.casema.net - - [18/July/2000:16:40:52 +0200] test
/cgi-bin/test.cgi/new_account.html Runtime error: Invalid value for
ReadPermission
>
cache-dh1.casema.net - - [18/July/2000:16:41:09 +0200] test
/cgi-bin/test.cgi/browse1.html Runtime error: Invalid value for
ReadPermission
>
cache-dh1.casema.net - - [18/July/2000:16:42:45 +0200] test
/cgi-bin/test.cgi/account.html Runtime error: Invalid value for
ReadPermission
>
cache-dh2.casema.net - - [18/July/2000:16:49:00 +0200] test
/cgi-bin/test.cgi/account.html Runtime error: Invalid value for
ReadPermission
>
cache-dh1.casema.net - - [18/July/2000:16:49:06 +0200] test
/cgi-bin/test.cgi/feedback.html Runtime error: Invalid value for
ReadPermission
>
proxy.sjc.netsetter.org - - [18/July/2000:16:49:55 +0200] test
/cgi-bin/test.cgi/browse1.html Runtime error: Invalid value for
ReadPermission
>
proxy.sjc.netsetter.org - - [18/July/2000:16:49:58 +0200] test
/cgi-bin/test.cgi/index.html Runtime error: Invalid value for ReadPermission
>
****************************************************************************
************************************************************************
And after remaking the catalog and changing the ReadPermission and
WritePermissions settings:
****************************************************************************
************************************************************************
- - - [18/July/2000:16:54:22 +0200] - - Added/changed catalog test:
>
> Directory: /opt/usr/gsmcorn/DOMAIN/HTML/catalogs/test
> Script: /cgi-bin/test.cgi
>
- - - [18/July/2000:16:54:22 +0200] - - Config 'test' from running server
(10122)
- - - [18/July/2000:16:54:22 +0200] - - Required UserTag email not present.
Aborting catalog.
> In line 1382 of the configuration file 'catalog.cfg':
> Require usertag email
>
- - - [18/July/2000:16:54:22 +0200] - - test config error: Required UserTag
email not present. Aborting catalog.
> In line 1382 of the configuration file 'catalog.cfg':
> Require usertag email
>
>
- - - [18/July/2000:16:54:22 +0200] - - Error reconfiguring catalog
/cgi-bin/test.cgi from running server (10122)
>
- - - [18/July/2000:16:54:22 +0200] - - Config 'test' from running server
(10122)
- - - [18/July/2000:16:54:22 +0200] - - Required UserTag email_raw not
present. Aborting catalog.
> In line 1383 of the configuration file 'catalog.cfg':
> Require usertag email_raw
>
- - - [18/July/2000:16:54:22 +0200] - - test config error: Required UserTag
email_raw not present. Aborting catalog.
> In line 1383 of the configuration file 'catalog.cfg':
> Require usertag email_raw
>
>
- - - [18/July/2000:16:54:22 +0200] - - Error reconfiguring catalog
/cgi-bin/test.cgi from running server (10122)
>
****************************************************************************
************************************************************************
I don't know where the usertags should be located but they are now in the
'mvend/usertag' directory
the file permissions of the usertags are all 644 (unchanged)
should the usertags be in the 'catalogs/test' directory ?
I've made a new catalog named simple and i still get the same error, maybe
nice to know is that i don't get one single error when making the catalog,
i've tried compiling the links, but they already were compiled so....
****************************************************************************
************************************************************************
catalog.cfg:
# Define the site-specific information
#
Variable SERVER_NAME www.gsmcorner.nl
Variable CGI_URL /cgi-bin/test.cgi
Variable SECURE_SERVER http://www.gsmcorner.nl
Variable ORDERS_TO gsmcorner@gsmcorner.nl
Variable IMAGE_DIR /test/images
Variable DOCROOT /opt/usr/gsmcorn/DOMAIN/HTML
Variable SAMPLEHTML /opt/usr/gsmcorn/DOMAIN/HTML/test
Variable SAMPLEURL http://www.gsmcorner.nl/test
Variable TEMPLATE yellow1
Variable COMPANY The Art Store
Variable ADDRESS 123 Any St.
Variable CITY Anytown, USA 00000
Variable PHONE (555) 555-5555
Variable TOLLFREE (888) 555-5555
Variable FAX (555) 555-5556
Variable LOGO template/logo.png
Variable SMLOGO
Variable ENCRYPTOR none
Variable TAXAREA OH IL
Variable TAXRATE OH=6, IL=7.25
Variable TAXSHIPPING OH
Variable MULTIORDER
# Set single-page order style
Variable ORDER_STYLE ord
# Set multi-page order style if MULTIORDER variable set
#ifdef MULTIORDER
Variable ORDER_STYLE multi
#endif
## END SITE CONFIGURATION
## Whether to encrypt passwords in UserDB
UserDB default crypt 0
## Change a field to something that doesn't conflict in MySQL
UserDB default time_field mod_time
#ifdef TEMPLATE eq 'brown1'
Variable BARBG MAROON
Variable BARTEXT #FFFFFF
Variable BODY BGCOLOR=WHITE LINK=BLACK
Variable CONTRAST RED
Variable HEADERBG BGCOLOR=#C6A563
Variable HEADERTEXT MAROON
Variable LINECOLOR #000000
Variable TABLEFG BGCOLOR=#E3D5B5
Variable TITLEBG NAVY
Variable TITLETEXT #FFFFFF
Variable TOPCOLOR #F22B34
Variable TOPTEXT YELLOW
#endif
#ifdef TEMPLATE eq 'blue1'
Variable BARBG #FF6701
Variable BARTEXT #FFFFFF
Variable BODY BGCOLOR=WHITE LINK=BLACK
Variable CONTRAST RED
Variable HEADERBG BGCOLOR=#4F87CB
Variable HEADERTEXT #CCFF99
Variable LINECOLOR #000000
Variable TABLEFG BGCOLOR=LIGHTBLUE
Variable TITLEBG NAVY
Variable TITLETEXT #FFFFFF
Variable TOPCOLOR #F22B34
Variable TOPTEXT YELLOW
#endif
#ifdef TEMPLATE eq 'yellow1'
Variable BARBG #000000
Variable BARTEXT #FFFFFF
Variable BODY BGCOLOR=WHITE LINK=BLACK
Variable CONTRAST RED
Variable HEADERBG BGCOLOR=#FFE88D
Variable HEADERTEXT #000000
Variable LINECOLOR #000000
Variable TABLEFG BGCOLOR=MOCCASIN
Variable TITLEBG #000000
Variable TITLETEXT #FFFFFF
Variable TOPCOLOR #F22B34
Variable TOPTEXT YELLOW
#endif
## Set some menubars and headers
## Use [include ...] with low traffic settings (from minivend.cfg)
## Put in memory with high traffic settings (from minivend.cfg)
ParseVariables Yes
# Better performance this way
#ifdef @TRAFFIC =~ /high/i
ConfigDir config/__TEMPLATE__
Variable TIMED_CATOPT [timed-build minutes=10 file=tmp/catoptions]
Variable TIMED_CATLIST [timed-build minutes=10 file=tmp/catlist]
Variable END_TIMED [/timed-build]
Variable LEFTSIDE <leftside
Variable RIGHTSIDE <rightside
Variable NO_RIGHT <no_right
Variable MENUBAR <menubar
Variable MENUBOTTOM <menubottom
Variable ONLYLOGO <only_logo
Variable LOGOBAR <logobar
Variable COPYRIGHT <copyright
ConfigDir config
#endif
# template changes show up immediately this way
#ifdef @TRAFFIC =~ /low/i
Variable LEFTSIDE [include config/__TEMPLATE__/leftside]
Variable RIGHTSIDE [include config/__TEMPLATE__/rightside]
Variable NO_RIGHT [include config/__TEMPLATE__/no_right]
Variable MENUBAR [include config/__TEMPLATE__/menubar]
Variable MENUBOTTOM [include config/__TEMPLATE__/menubottom]
Variable ONLYLOGO [include config/__TEMPLATE__/only_logo]
Variable LOGOBAR [include config/__TEMPLATE__/logobar]
Variable COPYRIGHT [include config/__TEMPLATE__/copyright]
#endif
ScratchDefault mv_add_dot_html 1
ScratchDefault mv_no_session_id 1
ScratchDefault mv_no_count 1
ScratchDefault order_style 1
ValuesDefault mv_shipmode upsg
ParseVariables Yes
# Sets Minivend to not parse <BODY MV="body 1"> and other tags within
# HTML tags, use [pragma no_html_parse 0] to enable on a page
Pragma no_html_parse
MailOrderTo __ORDERS_TO__
VendURL http://__SERVER_NAME____CGI_URL__
SecureURL __SECURE_SERVER____CGI_URL__
Variable SOMESQL
Variable MYSQL
Variable PGSQL
#ifndef SOMESQL
Database area area.txt TAB
Database area AUTO_NUMBER 1
Database cat cat.txt TAB
Database country country.txt TAB
Database inventory inventory.txt TAB
Database products products.txt TAB
Database pricing pricing.txt TAB
Database pricing KEY sku
Database pricing NUMERIC q2
Database products HOT 1
Database products INDEX category:c
Database shipping shipping.txt TAB
Database shipping AUTO_NUMBER 1
Database orderline orderline.txt TAB
Database transactions transactions.txt TAB
Database userdb userdb.txt TAB
#endif
#ifdef MYSQL
Variable SQLDSN dbi:mysql:test_minivend
Message <<EOF
Using MySQL for databases, DSN=__SQLDSN__.
EOF
# Uncomment if needed
#Variable SQLUSER foo
#Variable SQLPASS bar
# The tables are in separate files in the mysql directory
#include mysql/*
#endif
#ifdef PGSQL
Variable SQLDSN dbi:Pg:dbname=test_minivend
Message <<EOF
Using PostgreSQL for databases, DSN=__SQLDSN__.
EOF
# Uncomment if needed
#Variable SQLPASS foo
#Variable SQLUSER bar
# The tables are in separate files in the mysql directory
#include pgsql/*
#endif
# We are always keeping these in DBM, can be in SQL if you wish
Variable MINIMATE_META mv_metadata
Variable MINIMATE_TABLE minimate
Database minimate minimate.asc TAB
Database mv_metadata mv_metadata.asc TAB
Database banner banner.txt TAB
Database banner NUMERIC weight
Database locale locale.txt TAB
Database 2ndDayAir 2ndDayAir.csv CSV
Database Ground Ground.csv CSV
Database NextDayAir NextDayAir.csv CSV
ProductFiles products
AlwaysSecure ord/checkout multi/checkout
AsciiTrack etc/tracking.asc
CommonAdjust pricing:q2,q5,q10,q25,q100, ;products:price, ;$
==color:pricing, ==size:pricing
# Here is one that sets up "Mix and match" based upon the price_group field
# in the "pricing" database.
#CommonAdjust pricing:price_group,q2,q5,q10,q25,q100, ;products:price, ;$
==color:pricing, ==size:pricing
CookieLogin Yes
# This sets up the new payment charge mode in MiniVend 4
# You set it to "custom name", where name is the name of a GlobalSub
# that performs the charge operation. If it is not "custom", then
# it will use the CyberCash routines.
#
# "minivend_test" is special, and the demo order profile
# works with the demo order form to test
#
#Variable MV_PAYMENT_MODE minivend_test
# Uncomment to use creditCardAuto if you want, now handled better in
# order profiles with "&credit_card=standard".
#CreditCardAuto Yes
# These are usually all you need for CyberCash 3
# Uncomment and edit to suit; make sure you remove CreditCardAuto somehow
#
#Variable CYBER_CONFIGFILE
/home/you/yourid75/mck-cgi/merchant_conf
#Variable CYBER_VERSION 3.2
#Variable CYBER_MODE mauthonly
#ifdef CYBER_MODE
Variable MV_PAYMENT_MODE mauthonly
CreditCardAuto No
#endif
# The old CyberCash stuff still should work, but use the above
#CyberCash Yes
EncryptProgram __ENCRYPTOR__
ImageAlias __IMAGE_DIR__/template/ __IMAGE_DIR__/__TEMPLATE__/
ImageDir __IMAGE_DIR__/
ImageDirInternal http://__SERVER_NAME____IMAGE_DIR__/
# Uncomment only if you have these locales on your system
#Locale de_DE
#Locale de_DE LC_CTYPE de_DE
#Locale fr_FR
#Locale en_US
Locale en_US LC_CTYPE C
LocaleDatabase locale
Onfly onfly
OrderCounter etc/order.number
OrderLineLimit 25
OrderProfile etc/profiles.order etc/profiles.login etc/profiles.misc
Password pass
# This makes CommonAdjust effective, since no_price doesn't exist
PriceField no_price
ReadPermission world
RemoteUser gsmcorn
RobotLimit 50
ActionMap deliver <<EOR
sub {
my $deliverable = shift;
$Scratch->{deliverable} = $CGI->{mv_arg};
$CGI->{mv_nextpage} = 'deliver';
return 1;
}
EOR
ActionMap get_password <<EOR
sub {
$Config->{NoSearch} = '';
$CGI->{mv_nextpage} = $CGI->{mv_search_page} = 'action/get_password';
$CGI->{mv_todo} = 'search';
$Tag->update('process');
return;
}
EOR
ParseVariables Yes
Route log attach 0
Route log cybermode ""
Route log empty 1
Route log encrypt 0
Route log increment 0
Route log report etc/log_transaction
Route log supplant 0
Route log track etc/log
Route copy_user attach 0
Route copy_user cybermode ""
Route copy_user empty 1
Route copy_user encrypt 0
Route copy_user increment 0
Route copy_user report etc/mail_receipt
Route copy_user supplant 0
Route copy_user track etc/log
# Main route must be last to make default
Route main attach 0
#Route main counter etc/some.other.order.number
Route main credit_card 0
Route main cybermode ""
Route main default 1
Route main email __ORDERS_TO__
Route main encrypt 0
Route main encrypt_program __ENCRYPTOR__
Route main errors_to __ORDERS_TO__
Route main increment 0
Route main pgp_cc_key ""
Route main pgp_key ""
Route main receipt etc/receipt.html
Route main report etc/report
Route main supplant 1
Route main individual_track orders
Route main track etc/tracking.asc
SalesTax state
SeparateItems Yes
SpecialPage flypage flypage
SpecialPage catalog index
SpecialPage checkout __ORDER_STYLE__/checkout
SpecialPage order __ORDER_STYLE__/basket
SpecialPage search results
SpecialPage results results
SpecialPage report ../etc/report
SpecialPage receipt ../etc/receipt
NoCache reconfig special config query ord multi
Static No
StaticAll Yes
StaticDBM static
StaticDepth 2
StaticDir __SAMPLEHTML__/pages
StaticFly Yes
StaticPath __SAMPLEURL__/pages
TaxShipping __TAXSHIPPING__
UpsZoneFile products/450.csv
UseModifier size color
AutoModifier pricing:price_group
UserTag quick-table HasEndTag
UserTag quick_table Interpolate
UserTag quick-table Order border
UserTag quick_table Routine <<EOF
sub {
my ($border,$input) = @_;
$border = " BORDER=$border" if $border;
my $out = "<TABLE ALIGN=LEFT$border>";
my @rows = split /\n+/, $input;
my ($left, $right);
for(@rows) {
$out .= '<TR><TD ALIGN=RIGHT VALIGN=TOP>';
($left, $right) = split /\s*:\s*/, $_, 2;
$out .= '<B>' unless $left =~ /</;
$out .= $left;
$out .= '</B>' unless $left =~ /</;
$out .= '</TD><TD VALIGN=TOP>';
$out .= $right;
$out .= '</TD></TR>';
$out .= "\n";
}
$out .= '</TABLE>';
}
EOF
# This UserTag sets a default font face, size, color
# or more in a table without having to type it in every
# time.
#
# Usage:
# [table-font face="arial, helvetica" size="-1"]
# <TABLE><TR><TD>Test.</TD></TR></TABLE>
# Will do multiple tables.
# <TABLE><TR><TD>Test.</TD></TR></TABLE>
# [/table-font]
#
UserTag table-font Order face
UserTag table-font PosNumber 1
UserTag table-font addAttr 1
UserTag table-font hasEndTag
UserTag table-font Routine <<EOR
sub {
my ($face, $opt, $table) = @_;
my @parms;
push(@parms, qq{FACE="$face"})
if $face;
for(qw/size color/) {
push(@parms, qq{\U$_\E="} . $opt->{$_} . '"')
if $opt->{$_};
}
push(@parms, $opt->{extra})
if $opt->{extra};
my $front = "<FONT " . join(" ", @parms) . '>';
$table =~ s:(<T[HD][^>]*>):$1$front:ig;
$table =~ s:(</T[HD]\s*>):</FONT>$1:ig;
return $table;
}
EOR
History 10
UserTag history-scan Order find exclude default
UserTag history-scan addAttr
UserTag history-scan Routine <<EOR
my %var_exclude = ( qw/
mv_credit_card_number 1
mv_pc 1
mv_session_id 1
/);
sub {
my ($find, $exclude, $default) = @_;
my $ref = $Vend::Session->{History}
or return $Tag->area($default || $Config->{SpecialPage}{catalog});
my ($hist, $href, $cgi);
$exclude = qr/$exclude/ if $exclude;
for(my $i = $#$ref; $i >= 0; $i--) {
#Log("checking $ref->[$i][0] for $exclude");
if ($exclude and $ref->[$i][0] =~ $exclude) {
next;
}
if($find) {
next unless $ref->[$i][0] =~ /$find/;
}
($href, $cgi) = @{$ref->[$i]};
last;
}
return $Tag->area($default || $Config->{SpecialPage}{catalog})
if ! $href;
my $form = '';
for(grep !$var_exclude{$_}, keys %$cgi) {
$form .= "\n$_=";
$form .= join("\n$_=", split /\0/, $cgi->{$_});
}
return $Tag->area( { href => $href, form => $form} );
}
EOR
WritePermission world
# Here you can set up fatal errors if a necessary sub or usertag
# doesn't exist, uncomment one of next lines to test
#Require globalsub nevairbe
#Require usertag nevairbe
Require usertag email
Require usertag email_raw
Require usertag var
Require usertag loc
Require usertag summary
Require usertag reconfig
****************************************************************************
************************************************************************
****************************************************************************
************************************************************************
****************************************************************************
************************************************************************
****************************************************************************
************************************************************************
****************************************************************************
************************************************************************
minivend.cfg:
#Catalog test /opt/usr/gsmcorn/DOMAIN/HTML/catalogs/test
/cgi-bin/test.cgi /test
#Catalog test /opt/usr/gsmcorn/DOMAIN/HTML/catalogs/test
/cgi-bin/test.cgi /test
Catalog test /opt/usr/gsmcorn/DOMAIN/HTML/catalogs/test
/cgi-bin/test.cgi /test
Catalog simple /opt/usr/gsmcorn/DOMAIN/HTML/catalogs/simple
/cgi-bin/simple.cgi /simple
# Set to 1 to include MiniMate
Variable MINIMATE 1
# Set to "low" or "high" to get different server parameters
Variable TRAFFIC low
#Variable TRAFFIC high
#Uncomment to log to debug file /tmp/mvdebug
#Variable DEBUG 1
Environment MOD_PERL
# You can set the Variable DEBUG above then tail -f the DebugFile
# You can also see MiniVend and catalog data structures
#ifdef @DEBUG
Message Sending debug to /tmp/mvdebug.
DebugFile /tmp/mvdebug
DumpStructure Yes
GlobalSub sub test_global_sub { return 'Test of global subroutine OK.' }
Variable TEST_VARIABLE Test of global variable OK.
#endif
#ifdef TRAFFIC =~ /low/i
Message Low traffic settings.
HouseKeeping 5
MaxServers 5
PIDcheck 300
#endif
#ifdef TRAFFIC =~ /high/i
Message High traffic settings.
HouseKeeping 2
MaxServers 10
PIDcheck 120
#endif
SafeUntrap ftfile sort rand
TcpMap 7786 -
#### Now including individual usertag files
#include usertag/*
#include compat/*
# Uses value of MINIMATE variable above
#ifdef MINIMATE
Message Calling MiniMate....
#include lib/MiniMate/minimate.cfg
#endif
#ifndef MINIMATE
Message MiniMate is NOT active.
#endif
### Include if you want non-English error messages. Not complete.
# #include locale.error
****************************************************************************
************************************************************************
I'm on a virtual server and they're are runnig the latest version of perl
i really hope this is enough information, if not, please let me know what
else i should look at
thanks in advance
Casper Mekel
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list