Support #951
Updated by Daniel Curtis over 4 years ago
{{>toc}} This is a guide on installing a self-hosted OFBiz instance on FreeBSD 12.2-RELEASE. h2. Prepare the Environment * Make sure the system is up to date: <pre> pkg update && pkg upgrade </pre> * Add ofbiz user: <pre> pw add user -n ofbiz -m -s /bin/sh -c "OFBiz" </pre> * Install the dependencies: <pre> pkg install openjdk8 git gradle </pre> h3. Configure PostgreSQL * Install PostgreSQL: <pre> pkg install postgresql-jdbc postgresql96-server postgresql96-client postgresql96-contrib </pre> * Initialize, start, and enable postgresql at boot: <pre> sysrc postgresql_enable="YES" service postgresql initdb service postgresql start </pre> * Log in to postgresql user account and connect to database: <pre> su - postgres psql -d template1 </pre> #* Create a user: <pre> CREATE USER ofbiz WITH PASSWORD 'SuperSecretPassword' CREATEDB; </pre> #* Create the databases database & grant all privileges on database <pre> CREATE DATABASE ofbizdb OWNER ofbiz encoding='UTF8'; CREATE DATABASE ofbizolapdb OWNER ofbiz encoding='UTF8'; CREATE DATABASE ofbiztenantdb OWNER ofbiz encoding='UTF8'; </pre> * Quit the database session <pre> \q exit </pre> h2. Install OFBiz * Download and compile ofbiz: <pre> su - ofbiz git clone -b release18.12 https://github.com/apache/ofbiz-framework cd ofbiz-framework ./gradlew cleanAll loadAll </pre> h2. Resources * https://github.com/apache/ofbiz-framework * https://github.com/apache/ofbiz-plugins