Koozali.org: home of the SME Server

interchange from red hat with E-smith server

Paul

interchange from red hat with E-smith server
« on: July 26, 2002, 05:32:48 PM »
If I had a fresh installation of red Hat 7.2, and Installed the RPM's for Interchange commerce for Red Hat, would that work with the e-smith server?
I like the functions of the sme server and would like to use them on all the servers I work on. but I was wondering if Interchange is compatible with SMe

let me know...

Lazo

Re: interchange from red hat with E-smith server
« Reply #1 on: July 26, 2002, 09:36:17 PM »
I hear that some people make it work, but I installed oscommerce insted, It works great, maybe you wanna try it!!

Steen Hadsbjerg

Re: interchange from red hat with E-smith server
« Reply #2 on: August 05, 2002, 02:04:12 AM »
Have a look at this IC How-to. It's originally by Justin Funke in March 2001.



Description
-----------
This how-to will get you started with the RedHat e-commerce package
Interchange.


Notes
-----
There may be better ways of setting up Interchange under SME v5, but this
will at least get you up and running with a demo catalog and allow you to
start the IC learning process.  This has not been used in a production
environment!  The Interchange package is installed on the system through
the use of an ibay.  The ibay is built with permissions for everyone to
access and this is a major security problem if you have other users on
your LAN.  TEST AT YOUR OWN RISK!


Details
-------
Your catalogs are located in the /var/lib/interchange/~ directory.  An
e-smith specific rpm was contemplated, however after getting familiar with
the application the decision was made that it is not necessary since all
security is handled through the CGI script for the store.  The primary
risk is that your store pages can be modified by others within your own
lan.  Nothing of importance is stored within the ibay itself.  After many
failed attempts, Interchange would not work like Gallery or PHPMyAdmin
through the /opt/~ directory.


Procedures
----------
1.  Make an ibay on your e-smith server with permissions set to "edit and
read" for everyone no password required. Make sure execute cgi is enabled.

2.  Install the interchange rpms and required support files.

    Note:  Not all these modules are needed, but a minimum required
           listing has not been put together to show what modules.you need
           for various features.  This is what I have downloaded and
           installed personally:

rpm -ivh http://ftp.interchange.redhat.com/interchange/4.8/rpm/interchange\
-4.8.3-1.noarch.rpm
rpm -ivh http://ftp.interchange.redhat.com/interchange/4.8/rpm/interchange\
-foundation-4.8.3-1.noarch.rpm
rpm -ivh http://ftp.interchange.redhat.com/interchange/4.8/rpm/interchange\
-foundation-demo-4.8.3-1.i386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Archive-Tar-0.22-10.i\
386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Archive-Zip-0.11-1.i3\
86.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Business-UPS-1.13-10.\
i386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Compress-Zlib-1.13-1.\
i386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Crypt-SSLeay-0.27-1.i\
386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-DBD-Pg-1.00-1.i386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-File-CounterFile-0.12\
-10.i386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-HTML-Parser-3.25-1.i3\
86.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-HTML-Tagset-3.03-1.i3\
86.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-IO-stringy-1.220-1.i3\
86.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Image-Size-2.93-1.i38\
6.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-MIME-Base64-2.12-1.i3\
86.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Mail-Sendmail-0.78-10\
.i386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Newt-1.08-1.i386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-OLE-Storage_Lite-0.09\
-1.i386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Parse-RecDescent-1.80\
-1.i386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-SOAP-Lite-0.50-1.i386\
.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-SQL-Statement-0.1020-\
1.i386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Safe-Hole-0.08-1.i386\
.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Spreadsheet-ParseExce\
l-0.22.3-1.i386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Spreadsheet-WriteExce\
l-0.32-1.i386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Storable-1.0.11-1.i38\
6.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Term-ReadLine-Perl-0.\
9908-10.i386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-TermReadKey-2.14-10.i\
386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Tie-Watch-1.0-10.i386\
.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-Time-HiRes-01.20-10.i\
386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-URI-1.12-1.i386.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-XML-Parser-2.30-1.i38\
6.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-libnet-1.0703-10.i386\
.rpm
rpm -ivh http://ftp.interchange.redhat.com/perl/perl-libwww-perl-5.53-1.i3\
86.rpm

** The following rpm's are not listed in the CPAN list, but were required
   for me to use Interchange with MySQL support on SME v5:

rpm -ivh ftp://rpmfind.net/linux/redhat/7.1/en/os/i386/RedHat/RPMS/perl-DB\
D-MySQL-1.2215-1.i386.rpm
rpm -ivh ftp://rpmfind.net/linux/redhat/7.1/en/os/i386/RedHat/RPMS/mysql-d\
evel-3.23.36-1.i386.rpm
rpm -ivh ftp://rpmfind.net/linux/redhat/7.1/en/os/i386/RedHat/RPMS/perl-DB\
I-1.14-10.i386.rpm


3.  Add a soft link to start interchange server on e-smith reboot run level
    7.

    ln -s /etc/rc.d/init.d/interchange /etc/rc.d/rc7.d/S95interchange


4.  Be sure to set the interch user password using the passwd utility.

5.  Set permissions and ownerships on the installed interchange files and
    directories.

    chown interch.interch /usr/lib/interchange -R

6. Make the catalog  - The catalog is based on the server www.myserver.com
and an ibay name "pub"

    /usr/lib/interchange/bin/makecat    

       Catalog name = "foundation"
       Enter path to httpd.conf file: "/etc/httpd/conf/httpd.conf"
       Server name: "www.myserver.com/pub"
       DemoType? "foundation"
       permtype? "M"
       InterchangeUser? "interch"
       CatUser? "root"
       InterchangeGroup?
       MailOrderTo? "orders@myserver.com"
       CatRoot? "/var/lib/interchange/foundation"
       CgiDir? "/home/e-smith/files/ibays/pub/cgi-bin"
       CgiUrl? "/pub/cgi-bin/foundation"
       Aliases? "/foundation"
       DocumentRoot? "/home/e-smith/files/ibays/pub/html"
       SampleHtml? "/home/e-smith/files/ibays/pub/html/foundation"
       ImageDir? "/home/e-smith/files/ibays/pub/html/foundation/images"
       ImageUrl? "/pub/foundation/images"
       INET or UNIX mode? "UNIX"
       Do you use CGIWRAP or SUEXEC? "n"

       Your company name "Foundation Store"

       Sample data type?:   "tools"

       Set to 1 if you want to use MySQL, PostgreSQL, or Oracle: ..

       Account name that will control this catalog:..... "interchange"
       Administrative password: ........................."pass"
       Set to 1 to display demo helper features in your store: "1"

       run "sh /var/lib/interchange/test/config/makedirs"? "y"
       run "sh /var/lib/interchange/test/config/installsample"? "y"

       Add catalog to interchange.cfg? "y"

7.  Let it finish and watch for any errors.

8.  Change ownership and group for the catalog back to "interch" since we
    just built the catalog as root.

    chown interch.interch /var/log/interchange/error.log
    chown interch.interch /var/lib/interchange -R

9.  Check the following permissions

    ls -al /home/e-smith/files/ibays/pub/cgi-bin/foundation

         -rwsrwxr-x    1 interch  interch      foundation
    if it does not have these permissions use the following:
    chmod 4771 /home/e-smith/files/ibays/pub/cgi-bin/foundation

    ls -al /usr/lib/interchange/etc/socket

         srw-rw-rw-    1 interch  interch         socket
    if it does not have these permissions use the following:
    chmod 666 /usr/lib/interchange/etc/socket

10.  The makecat utility has a bug in it that copies support files to the
     /var/www/html/~ directory instead of where the files should be copied
     to on a SME O/S.  To correct this, just do the following:

     mv /var/www/html/foundation /home/e-smith/files/iabys/pub/html/
     mv /var/www/html/interchange /home/e-smith/files/ibays/pub/html/

11.  Restart the interchange server as user interch.

     su -c "/usr/lib/interchange/bin/interchange -r" interch

12.  Check to make sure it is working at
     http://www.myserver.com/pub/foundation

13.  If you receive any errors, you may need to do a full reboot,

     shutdown -r now


Note:  If you experience a problem on the links at the top of the page not
       working because the "pub" directory is coming up twice - redo the
       catalog configuration and remove the italicized "pub" from line 3 of
       the catalog configuration script.


Hope this give you some basic knowledge...

Regards,
Steen

ArnMan

Working but still not working :( Re: interchange from red
« Reply #3 on: August 06, 2002, 07:16:29 AM »
Hello,
Thank you for the very informative response, on setting up Interchange. I have
followed your instructions to the "T", I even had to add a couple of extra
modules, like openssl but everything worked all the way to the end. Until, I
went to go view the store online
I have a small lan setup, I am running a website on the e-smith server,
which comes up just fine. when I go the the ibay dir to load up the
foundation, it brings up a page with
go to customers entrance, or admin's entrance, and some links at the bottom.
So I click on the customers entrance to see the store, it sits there for
about a minute then comes up with a
We're sorry, the Interchange server is unavailable...
We are out of service or may be experiencing high system demand. Please try
again soon.

Is there something I did wrong? I restarted the server both but restarting
the machine and also restarting it with the /sbin/service interchange
restart command
It does it on both the admin and customers entrance...

Everything else went AOK for me. just this is puzzling me..

Thanks again