MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Problem setting up MiniVend in a directory other than web root.



******    message to minivend-users from "Kris Kelley" <sysadmin@jahoopa.com>     ******

I'm new to MiniVend, and I'm trying to install and play with the 
sample store.  Unfortunately, I haven't had much luck getting it to 
work; at least, I haven't had any luck getting it to work the way I
*think* it should be working.

Currently, I (as a single user) own MiniVend and all related files and 
catalogs.  The demo I'm trying to set up is the "simple" catalog.  The 
store, when it is working correctly, is to be accessed with a URL 
similar to {http://www.site.com/~user/simple}.  The catalog info is 
stored under {<user home>/catalogs/simple}, the web directory is 
{<user home>/public_html/simple}, and the CGI link program is at
{<user home>/public_html/simple.cgi}, as I don't have keep a separate 
CGI bin for scripts.

I've tried to configure the catalog in a number of ways.  The first 
was to set, in "simple.cfg" as the catalog was being built: the 
following variables:
   SERVERNAME:  www.site.com/~user
   CGIURL:  /simple.cgi
   IMAGEURL:  /simple/images
This resulted in the HTML documents provided in the sample web 
directory having broken links and no images, because "~user" is being 
left out of all the URLs.  The CGI script would not work at all, 
producing this error message in the main error log:
   /~mvend/simple.cgi Undefined catalog: /~mvend/simple.cgi

The second time I set "simple.cfg" with these variables:
   SERVERNAME:  www.site.com/~user
   CGIURL:  /~user/simple.cgi
   IMAGEURL:  /~user/simple/images
The sample HTML then executed fine, with all images displayed 
appropriately.  The CGI script also executed, but all links to (and 
generated by) the script had "~user/~user" in the URL, resulting in 
more broken links.

The third time I used this:
   SERVERNAME:  www.site.com
   CGIURL:  /~user/simple.cgi
   IMAGEURL:  /~user/simple/images
This time, everything worked fine.  Can SERVERNAME not be anything 
besides the actual name of the web server?  The examples mentioned in 
the catalog config file led me to believe I could use something like 
"www.site.com/~user", so I would like to know if I'm doing something 
wrong.  I certainly think it would be better in the long run to 
configure multiple catalogs in this manner.

I'm using MiniVend 3.11 with Perl 5.005_02 and Apache 1.3.1, all 
running on Solaris 2.6 for Intel x86.  Any help will be appreciated.

---Kris Kelley


_____________________________________________________
Sent by Jahoopa Free Email!
Find us on the web at http://www.jahoopa.com
Join today!

-
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


Search for: Match: Format: Sort by: