[Yanel-commits] rev 50422 - public/yanel/trunk/src/realms/yanel-website/content

michi at wyona.com michi at wyona.com
Tue Jun 15 15:02:53 CEST 2010


Author: michi
Date: 2010-06-15 15:02:53 +0200 (Tue, 15 Jun 2010)
New Revision: 50422

Modified:
   public/yanel/trunk/src/realms/yanel-website/content/db7ccbd3-cb9b-402c-b57f-2f9a19828d46
Log:
more notes re installing added

Modified: public/yanel/trunk/src/realms/yanel-website/content/db7ccbd3-cb9b-402c-b57f-2f9a19828d46
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/db7ccbd3-cb9b-402c-b57f-2f9a19828d46	2010-06-15 13:02:03 UTC (rev 50421)
+++ public/yanel/trunk/src/realms/yanel-website/content/db7ccbd3-cb9b-402c-b57f-2f9a19828d46	2010-06-15 13:02:53 UTC (rev 50422)
@@ -6,7 +6,7 @@
 <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.</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>
@@ -35,7 +35,7 @@
 <li>Download Community Server DMG Archive: mysql-5.1.47-osx10.6-x86_64.dmg</li>
 </ul>
 </li>
-<li>Open DMG   
+<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>
@@ -46,10 +46,10 @@
 <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 />
+<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
+<li>OR: /usr/local/mysql/bin/mysql -uroot -p    
 <ul>
 <li>show databases;</li>
 <li>quit</li>
@@ -58,13 +58,13 @@
 </ul>
 </li>
 <li>Display version: /usr/local/mysql/bin/mysqladmin version</li>
-<li>Import MySQL dump: 
+<li>Import MySQL dump:     
 <ul>
 <li>/usr/local/mysql/bin/mysql -uroot -p &lt; /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': 
+<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>
@@ -74,12 +74,25 @@
 </li>
 <li>...</li>
 </ul>
-<h3>Import KonaKart sample data into PostgreSQL</h3>
+<h3>Install KonaKart</h3>
 <ul>
-<li>Download KonaKart, e.g. the ZIP version of the <a href="http://www.konakart.com/downloads/community_edition">community edition</a></li>
 <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>Create a KonaKart database within PostgreSQL:                     
+<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>
@@ -87,18 +100,18 @@
 <li>createdb -U postgres --encoding unicode konakart</li>
 </ul>
 </li>
-<li>Import the sample data:                     
+<li>Import the sample data:                         
 <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:                    
+<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-community/database/PostgreSQL/konakart_demo.sql</li>
+<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-community/database/PostgreSQL/konakart_demo.sql</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-community/database/PostgreSQL/konakart_demo.sql</li>
-<li>Test the data:                    
+<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>
@@ -111,7 +124,8 @@
 </ul>
 <h3>Configure the database connection within KonaKart and PostgreSQL<br /></h3>
 <ul>
-<li>webapps/konakart/WEB-INF/classes/konakart.properties                
+<li>cd konakart</li>
+<li>webapps/konakart/WEB-INF/classes/konakart.properties                    
 <ul>
 <li>torque.database.store1.adapter&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; = postgresql</li>
 <li>torque.dsfactory.store1.connection.driver&#160;&#160; = org.postgresql.Driver</li>
@@ -121,14 +135,14 @@
 </ul>
 </li>
 <li>webapps/konakartadmin/WEB-INF/classes/konakartadmin.properties</li>
-<li>Make sure that postgreSQL is listening                  
+<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:                 
+<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&#160;&#160;&#160; all&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; all&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 127.0.0.1/32&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; trust</li>
@@ -138,18 +152,36 @@
 </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>chmod -R 775 bin</li>
+<li>./bin/startup.sh</li>
+<li>http://127.0.0.1:8780/konakart/</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</h3>
+<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         
+<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>



More information about the Yanel-commits mailing list