[Yanel-commits] rev 57942 - in public/yanel/trunk/src/realms/yanel-website/data-repo/data/en/documentation/misc: . e-commerce

michi at wyona.com michi at wyona.com
Wed Apr 20 22:39:03 CEST 2011


Author: michi
Date: 2011-04-20 22:39:03 +0200 (Wed, 20 Apr 2011)
New Revision: 57942

Added:
   public/yanel/trunk/src/realms/yanel-website/data-repo/data/en/documentation/misc/e-commerce/
   public/yanel/trunk/src/realms/yanel-website/data-repo/data/en/documentation/misc/e-commerce/index.html
Log:
e-commerce content added

Added: public/yanel/trunk/src/realms/yanel-website/data-repo/data/en/documentation/misc/e-commerce/index.html
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/data-repo/data/en/documentation/misc/e-commerce/index.html	                        (rev 0)
+++ public/yanel/trunk/src/realms/yanel-website/data-repo/data/en/documentation/misc/e-commerce/index.html	2011-04-20 20:39:03 UTC (rev 57942)
@@ -0,0 +1,223 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<title>Untitled document</title>
+</head>
+<body>
+<h1>KonaKart Integration</h1>
+<p><a href="http://www.konakart.com/">KonaKart</a> is a Java based eCommerce Shopping Cart Software.</p>
+<p>KonaKart supports <a href="http://www.konakart.com/installationfaq.php">various databases</a>, but the following step-by-step instruction is based on PostgreSQL (and MySQL)</p>
+<h3>Install PostgreSQL on a Linux server<br /></h3>
+<ul>
+<li>uname -a</li>
+<li>sudo bash</li>
+<li>aptitude search postgres</li>
+<li>aptitude install postgresql-8.2</li>
+<li>ls /var/lib/postgresql/8.2/</li>
+<li>/etc/init.d/postgresql-8.2 stop</li>
+<li>/etc/init.d/postgresql-8.2 start</li>
+<li>su - postgres</li>
+<li>psql -U postgres</li>
+<li>select * from pg_tables;</li>
+<li>\q</li>
+</ul>
+<h3>Install PostgreSQL on Mac OS X (Snow Leopard)</h3>
+<ul>
+<li><a href="http://www.postgresql.org/download/macosx">http://www.postgresql.org/download/macosx</a></li>
+<li>sudo bash</li>
+<li>su - postgres</li>
+<li>/Library/PostgreSQL/8.4/bin/pg_ctl -D /Library/PostgreSQL/8.4/data stop</li>
+<li>/Library/PostgreSQL/8.4/bin/pg_ctl -D /Library/PostgreSQL/8.4/data start</li>
+</ul>
+<h3>Install MySQL on Mac OS X (Snow Leopard)</h3>
+<ul>
+<li><a href="http://dev.mysql.com/downloads/mysql/">http://dev.mysql.com/downloads/mysql/</a> 
+<ul>
+<li>Download Community Server DMG Archive: mysql-5.1.47-osx10.6-x86_64.dmg</li>
+</ul>
+</li>
+<li>Open DMG         
+<ul>
+<li>Double-click mysql-5.1.47-osx10.6-x86_64.pkg</li>
+<li>Will be installed to /usr/local/...</li>
+<li>Double-click MySQLStartupItem.pkg</li>
+<li>Will be installed to /Library/StartupItems/...</li>
+</ul>
+</li>
+<li>sudo /Library/StartupItems/MySQLCOM/MySQLCOM start</li>
+<li>sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop</li>
+<li>In order to disable automatic startup during system boot: vi /etc/hostconfig (set MYSQLCOM=-YES- to NO)</li>
+<li>Test mysql: /usr/local/mysql/bin/mysqlshow -uroot -p<br /> 
+<ul>
+<li>(also see <a href="http://dev.mysql.com/doc/refman/5.0/en/unix-post-installation.html">http://dev.mysql.com/doc/refman/5.0/en/unix-post-installation.html</a>)</li>
+<li>OR: /usr/local/mysql/bin/mysql -uroot -p      
+<ul>
+<li>show databases;</li>
+<li>quit</li>
+</ul>
+</li>
+</ul>
+</li>
+<li>Display version: /usr/local/mysql/bin/mysqladmin version</li>
+<li>Import MySQL dump:       
+<ul>
+<li>/usr/local/mysql/bin/mysql -uroot -p < /Users/michaelwechner/dump.sql</li>
+<li>The initial root account passwords are empty, hence just hit enter when being asked for the password</li>
+</ul>
+</li>
+<li>Assuming that the dump created a database called 'my-database', which contains a table 'my-table':       
+<ul>
+<li>/usr/local/mysql/bin/mysql -uroot -p my-database</li>
+<li>show tables;</li>
+<li>select * from my-table;</li>
+<li>quit</li>
+</ul>
+</li>
+<li>...</li>
+</ul>
+<h3>Install KonaKart</h3>
+<ul>
+<li>Also see the <a href="http://www.konakart.com/docs/manualInstallation.html">KonaKart manual installation FAQ</a> (Previous: <a href="http://www.konakart.com/manual_installationfaq.php">KonaKart manual installation FAQ<br /></a>)</li>
+<li>
+<p>Download KonaKart, e.g. the ZIP version of the <a href="http://www.konakart.com/downloads/community_edition">community edition</a> (e.g. KonaKart-4.2.0.1.zip)</p>
+</li>
+<li>Unpack by running 'unzip KonaKart-4.2.0.1.zip' which should create a directory called 'konakart'</li>
+<li>The next steps are described below    
+<ul>
+<li>Import sample data into the database</li>
+<li>Configure the database connection</li>
+</ul>
+</li>
+<li>...</li>
+</ul>
+<h3>Import KonaKart sample data into PostgreSQL</h3>
+<ul>
+<li>Create a KonaKart database within PostgreSQL:                           
+<ul>
+<li>sudo bash</li>
+<li>/etc/init.d/postgresql-8.2 start</li>
+<li>su - postgres</li>
+<li>dropdb -U postgres konakart</li>
+<li>createdb -U postgres --encoding unicode konakart</li>
+</ul>
+</li>
+<li>Import the sample data (e.g. a dump):                           
+<ul>
+<li>Depending on what web-server port you want to run KonaKart, you might have to change the port within the KonaKart sample data:                          
+<ul>
+<li>grep 8780 konakart/database/PostgreSQL/konakart_demo.sql</li>
+<li>Replace the port number 8780 for example by 8080: vi: 1,$s/8780/8080/g</li>
+<li>grep localhost:8780 konakart/database/PostgreSQL/konakart_demo.sql</li>
+<li>Replace localhost by the actual server host name</li>
+</ul>
+</li>
+<li>Import the data: psql -U postgres -d konakart -f konakart/database/PostgreSQL/konakart_demo.sql</li>
+<li>Test the data:                          
+<ul>
+<li>psql -U postgres -d konakart</li>
+<li>select * from products;</li>
+<li>\q</li>
+</ul>
+</li>
+<li>...</li>
+</ul>
+</li>
+<li>...</li>
+</ul>
+<h3>Configure the database connection within KonaKart and PostgreSQL<br /></h3>
+<ul>
+<li>cd konakart</li>
+<li>webapps/konakart/WEB-INF/classes/konakart.properties                      
+<ul>
+<li>torque.database.store1.adapter              = postgresql</li>
+<li>torque.dsfactory.store1.connection.driver   = org.postgresql.Driver</li>
+<li>torque.dsfactory.store1.connection.url      = jdbc:postgresql://localhost:5432/konakart</li>
+<li>torque.dsfactory.store1.connection.user     = postgres</li>
+<li>torque.dsfactory.store1.connection.password =</li>
+</ul>
+</li>
+<li>webapps/konakartadmin/WEB-INF/classes/konakartadmin.properties</li>
+<li>Make sure that postgreSQL is listening                        
+<ul>
+<li>vi /etc/postgresql/8.2/main/postgresql.conf</li>
+<li>listen_addresses = 'localhost,127.0.0.1'</li>
+<li>netstat -nt -l | grep 5432</li>
+</ul>
+</li>
+<li>Make sure that you can connect without password from localhost:                       
+<ul>
+<li>vi /etc/postgresql/8.2/main/pg_hba.conf</li>
+<li>host    all         all         127.0.0.1/32          trust</li>
+<li>host    all         all         ::1/128               trust</li>
+</ul>
+</li>
+</ul>
+<h3>Running KonaKart</h3>
+<ul>
+<li>Either run the Tomcat which is part of the distribution    
+<ul>
+<li>cd konkart</li>
+<li>OPTIONAL: To be on the safe reconfigure the port 8005 within conf/server.xml by for example 8705</li>
+<li>OPTIONAL: Enable SOAP: webapps/konakart/WEB-INF/server-config.wsdd (<parameter name="allowedMethods" value="*"/>)</li>
+<li>chmod -R 775 bin</li>
+<li>./bin/startup.sh</li>
+<li>http://127.0.0.1:8780/konakart/</li>
+<li>SOAP: http://127.0.0.1:8780/konakart/services/KKWebServiceEng</li>
+</ul>
+</li>
+<li>Or build war files   
+<ul>
+<li>cd konakart/custom</li>
+<li>ant make_wars</li>
+<li>cp war/* MY_TOMCAT/webapps/.</li>
+<li>OPTIONAL: Make sure that database connection is configured correctly (as described above)</li>
+</ul>
+</li>
+<li>Frontend: http://127.0.0.1:8080/konakart/</li>
+<li>Backend: http://127.0.0.1:8080/konakartadmin/<br /> 
+<ul>
+<li>Login Credentials: <a href="http://www.konakart.com/installationfaq.php#Default_Admin_App_Credentials">http://www.konakart.com/installationfaq.php#Default_Admin_App_Credentials</a></li>
+<li>U: admin at konakart.com, P: princess</li>
+</ul>
+</li>
+</ul>
+<h3>Alternative: Use the silent installer on Linux (WARNING: Does not work on Mac OS X)<br /></h3>
+<ul>
+<li>Download the Linux installer: <a href="http://www.konakart.com/downloads/community_edition">http://www.konakart.com/downloads/community_edition</a></li>
+<li>./konakart-linux-install -S -DInstallationDir /home/wyona/konakart -DDatabaseType postgresql -DDatabaseUrl jdbc:postgresql://localhost:5432/konakart -DDatabaseDriver org.postgresql.Driver -DDatabaseUsername postgres</li>
+<li>Startup: It seems that the silent installer starts Tomcat automatically on port 8780               
+<ul>
+<li>netstat -nt -l | grep </li>
+<li>http://195.226.6.73:8780</li>
+<li>Otherwise use /home/wyona/konakart/bin/startup.sh</li>
+</ul>
+</li>
+<li>IMPORTANT: Make sure that your data within the database is also using the port 8780</li>
+</ul>
+<h3>Installing the Enterprise Edition (manually)</h3>
+<ul>
+<li>Also see <a href="http://www.konakart.com/docs/manualInstallation_EE.html">http://www.konakart.com/docs/manualInstallation_EE.html</a></li>
+<li>Assume we have installed the community edition at /home/foo/konakart</li>
+<li>./bin/shutdown.sh</li>
+<li>Unzip konkart enterprise package (e.g. KonaKart-Enterprise-4.2.0.1.zip) within some temporary directory, e.g. /home/foo/tmp/konakart</li>
+<li>Copy (overwrite) all files and directories from the enterrpise to the community directory, e.g. cp -r /home/foo/tmp/konakart/* /home/foo/konakart/.</li>
+<li>./bin/startup.sh</li>
+<li>Try using a feature which is only supported by the enterprise edition, e.g. switching the language within konakartadmin.</li>
+</ul>
+<h3>Help</h3>
+<ul>
+<li><a href="http://www.konakart.com/forum/index.php">http://www.konakart.com/forum/index.php</a></li>
+</ul>
+<h3>Misc</h3>
+<ul>
+<li>Backup and restore data: <a href="http://www.postgresql.org/docs/8.1/static/backup.html">http://www.postgresql.org/docs/8.1/static/backup.html</a> 
+<ul>
+<li><code>sudo bash</code></li>
+<li><code>su - postgres</code></li>
+<li><code>pg_dump konakart > konakart_demo.sql.DUMP_2010.05.31T09.09</code></li>
+<li>Or instead using sudo: <code>pg_dump -U postgres konakart > konakart_demo.sql.DUMP_2010.05.31T09.09</code></li>
+</ul>
+</li>
+</ul>
+</body>
+</html>



More information about the Yanel-commits mailing list