Saturday, January 1, 2011

Opentaps Linux Installation

Download opentaps in to /home/user1

$cd /home/user1

$unzip opentaps-1.4.2.zip

$cd opentaps-1.4.2

Login mysql as root and create new database and user as

mysql > create database ofbiz;

mysql> grant all on ofbiz.* to ofbiz@localhost identified by 'ofbiz';

mysql> exit

Edit entityengine.xml to give the above database parameters.

vi framework/entity/config/entityengine.xml

# Change the "datasource-name" attribute under the from the default "localderby" to "localmysql". (Note: older version of opentaps might have a default of "localhsql") Do not change localderbyodbc.

{Follow the steps (1 to 5) below if dbname or user or password choosen in db, user creation are different

1. Look for further down.

2. Change the "jdbc-uri" under "localmysql" to "jdbc:mysql://127.0.0.1/opentaps?autoReconnect=true&useOldAliasMetadataBehavior=true"

3. Change the "jdbc-username" to "opentaps"

4. Change the "jdbc-password" to the password you chose above

5. Set the correct character set and collation. By default, the entity engine is configured to use case-sensitive Latin character sets. If you are going to use opentaps with a different language, you can change it to UTF8 by setting character-set="utf8" and collate="utf8_general_ci" or at your language's UTF8 setting. Note that MySQL may not support case-sensitive characters for your UTF8 character set.}

save and exit

$ ./ant run-install

BUILD SUCCESSFUL

Total time: 7 minutes 11 seconds

$ chmod u+x startofbiz.sh

$ chmod u+x stopofbiz.sh

$ ./startofbiz.sh

Launch browser and open following url

http://localhost:8080/opentaps/

user : admin pwd : ofbiz

Developer Guide :

http://www.opentaps.org/docs/index.php/Opentaps_Technical_Reference#opentaps_and_Google_Web_Toolkit



No comments:

Post a Comment