I have a few years of experience with ofbiz. I’ve tinkered with the code and managed things from the systems side. But I’ve always had a couple of developers in the cubicle next to me I could turn to when I ran into troubles. I’m now going to setup ofbiz to run on my local desktop, and document the steps I take here (more for future reference for myself than for anyone else.)
First of all, there are a few prerequisites. I’m running SuSE 10.1 and have made sure I have these packages installed (as well as any required dependencies):
- subversion-1.3.0-20
- ant-1.6.5-17
- postgresql-jdbc-8.1-10
- postgresql-8.1.3-12
- java-1_5_0-sun-devel-1.5.0_10-0.1
- postgresql-server-8.1.4-1.2
- mod_jk-ap20-4.1.30-8
- apache2-prefork-2.2.0-21.7
Add this line as the first uncommented line in /var/lib/pgsql/data/pg_hba.conf
host ofbiz ofbiz 127.0.0.1/32 trust
This allows the ofbiz user to connect to the ofbiz database locally regardless of the password supplied.
Start postgresql
/etc/init.d/postgresql start
Create the database
su - postgres
createdb ofbiz
createuser -A -D ofbiz
I then went into my working directory and checked out the ofbiz trunk
svn co http://svn.apache.org/repos/asf/ofbiz/trunk ofbiz
Copy the jdbc driver into the proper directory:
cp /usr/share/pgsql/postgresql-8.1-404.jdbc3.jar ofbiz/framework/entity/lib/jdbc
Edit the framework/entity/config/entityengine.xml file and replace localderby with localpostgres in the delegator entries.
In your ofbiz directory, run
ant run-install
You’ll see a bunch of stuff scroll by on the screen and it should end with: “result - BUILD SUCCESSFUL
”
From your ofbiz directory, run
./startofbiz.sh
Then connect to https://localhost:8443/example/ or https://localhost:8443/ecommerce/ from your favorite browser.
Done!