|
|
To print: Select File and then Print from your browser's menu
-------------------------------------------------------------- This story was printed from ZDNet Australia. --------------------------------------------------------------
|
A shopping cart anyone can install By Jack Wallen, Jr., TechRepublic July 17, 2002 URL: http://www.zdnet.com.au/insight/soa/A-shopping-cart-anyone-can-install/0,139023731,120266726,00.htm
Reach online shoppers by outfitting your company's Web site with an e-commerce solution. You can do it quickly and painlessly with the open-sourced RediCommerce.
I've shopped around for quite some time for a good shopping cart/e-commerce solution to highlight. The criteria for this search were simple: The tool had to be inexpensive, reliable, and simple to set up. I found this solution in a Linux e-commerce application called RediCommerce.
This shopping cart application blends seamlessly with Apache and OpenSSL to form an outstanding solution that will allow you to have real-time credit card processing, stock your online store with hundreds of items, and manage your store from any browser. In this Daily Feature, I’ll show you how to install this tool and configure RediCommerce so you’ll be ready to set up your first shopping cart. It's quick, it's painless, and it's Linux. Take note that the installation of RediCommerce must take place on a Linux server. The configuration of the shopping cart can be done from any browser on any platform. What you'll need, or "Just use the latest distro!" For my installation, I used Red Hat 7.2 as my operating system. All the tools I needed (Apache, OpenSSL, Perl 5) were already in place. If you’re using another distribution, please make sure you have these three required tools. Installation, or "Where do these images go?" With the requirements met, you can begin by snagging the source to the application. To download the file, you have to fill out a download request form, which asks for your name, e-mail address, and any comments you’d like to make. Once you’ve submitted the form, you’ll be sent an e-mail with instructions on how to get your copy of the file. The file will be in .zip form and will be named redicommerceVERSION.zip (where VERSION is the release number). The installation of this application is fairly simple, but I did find that some steps must be followed that, to be honest, shouldn't have to be taken. First, you’ll su to root and run the command unzip redicommerceVERSION.zip, which will unpack a directory named store. This newly created directory must now be moved in Apache'scgi-bin directory. With Red Hat >= 7.0, Apache's cgi-bin is located in /var/www. To move the store directory, issue the command mv redicommerceVERSION.zip /var/www/ from the directory to which the .zip file was downloaded. With the store directory in place, you have only a few more steps, but they’re critical. The last steps focus on the security of the shopping cart, so pay close attention. First, you’ll want to make sure that the necessary images (and any images you’ll be using later) will actually show up in the user’s browser. The installation of the application doesn’t help you with this step and the documentation is a bit lacking on the subject. I sat around thinking "Where do these images go?" I quickly remembered good old document root.
For the images to show up correctly in RediCommerce, they must be contained with the document root of the Apache browser. To do this, create a new directory (called images or whatever) within the document root with the command mkdir /var/www/html/images. With the new directory in place, change to the /var/www/cgi-bin/store/html/images directory and issue the command cp * /var/www/html/images/. Now that you have all the default images in place (you'll add others later), you’re ready to deal with some security. Permissions, or "chmod 744, 755, hut hut!" After quite awhile of running permission changes on the various directories (and consequently mucking up an installation), I was severely frustrated. Fortunately, you won’t have to endure such pain.
Here are the exact permissions settings you’ll need within the store directory:
You may also want to lock down the Store Manager access with the following permissions later on:
This can be done once installation is complete and you've set up your shopping cart. If you do it before you set up shop, you won’t be able to access the Store Manager. Password protection, or "Avoiding Error 500"
It is absolutely critical that you password-protect the /var/ww/cgi-bin/store directory. If you don’t, you run the risk of releasing cookies, orders, and other must-not-disclose information into the wild. Conclusion I bet you never thought e-commerce could be so simple. Now that you have the server set up and ready to go, you’re ready to put together that first shopping cart. Stayed tuned until next time when I'll go through all the configurations possible for the RediCommerce Store Manager from any client Web browser.
TechRepublic is the online community and information resource for all IT professionals, from support staff to executives. We offer in-depth technical articles written for IT professionals by IT professionals. In addition to articles on everything from Windows to e-mail to fire walls, we offer IT industry analysis, downloads, management tips, discussion forums, and e-newsletters.
Copyright © 2009 CBS Interactive, a CBS Company. All Rights Reserved. |