[Yanel-commits] rev 49679 -
public/yanel/trunk/src/realms/yanel-website/content
michi at wyona.com
michi at wyona.com
Tue May 18 12:04:38 CEST 2010
Author: michi
Date: 2010-05-18 12:04:37 +0200 (Tue, 18 May 2010)
New Revision: 49679
Modified:
public/yanel/trunk/src/realms/yanel-website/content/db7ccbd3-cb9b-402c-b57f-2f9a19828d46
Log:
more data instructions 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-05-18 09:31:22 UTC (rev 49678)
+++ public/yanel/trunk/src/realms/yanel-website/content/db7ccbd3-cb9b-402c-b57f-2f9a19828d46 2010-05-18 10:04:37 UTC (rev 49679)
@@ -19,24 +19,27 @@
<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/manual_installationfaq.php">KonaKart manual installation FAQ</a></li>
-<li>Create a KonaKart database within PostgreSQL:
+<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:
+<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>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>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>Test the data:
<ul>
<li>psql -U postgres -d konakart</li>
<li>select * from products;</li>
@@ -49,7 +52,7 @@
</ul>
<h3>Configure the database connection within KonaKart and PostgreSQL<br /></h3>
<ul>
-<li>webapps/konakart/WEB-INF/classes/konakart.properties
+<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>
@@ -59,14 +62,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    all         all         127.0.0.1/32          trust</li>
More information about the Yanel-commits
mailing list