OFBiz Install on AWS t2.micro

Last Updated 20230513

This section is how to install OFBiz onto the AWS t2.micro instance that was created in the prior section.

Type into a web browser:

https://ofbiz.apache.org/business-users.html#UsrInstall 

Press Enter

Select Download Mirrors

apache-ofbiz-16.11-download-mirrors

Select Download

apache-ofbiz-16.11-download-mirrors-local

Click on the suggested site.

Download status show in the lower left corner of you web browser.

apache-ofbiz-16.11-download-mirrors-local-suggested

Load WinSCP

Click on New Site

Copy Public DNS from your AWS Instance to the Host Name Field

Enter ec2-user in the User Name Field

Click on Save

Click on Login

Click on Yes

This acknowledges that the servers host key is not cached in the registry.

winscp-aws-host-name-dns-user-name-settings

Right Click on apache-ofbiz.18.12.05.zip

Select Upload

Click on Ok to Upload file to /home/ec2-user

winscp-aws-ofbiz-name-change-upload-aws-server

Type:

ls

Press Enter

Check for file apache-ofbiz-18.12.05.zip

Type:

unzip apache-ofbiz-18.12.05.zip

Press Enter

Type cd apache-ofbiz-18.12.05

Press Enter

putty-ls-ofbiz-16-11-06-zip-unzip-aws-ec2-user

Type:

gradle/init-gradle-wrapper.sh

Press Enter

Type:

./gradlew "ofbiz --load-data readers=seed,seed-initial" loadAdminUserLogin -PuserLoginId=admin

seed=Data that is required in order for the software to run

seed-initial=Data that is only required for the first time.  I believe you don't want to run seed-initial on subsequent runs our you may have duplicates or overwrite existing data such as passwords in the system.

ext=Your data.

https://www.hotwaxsystems.com/ofbiz/ofbiz-data-setupdata-reader-best-practices-tutorial/ 

Press Enter

This installs OFBiz with minimal seed data and a super admin user with password ofbiz.  Change "admin" to something like "adminbigsteve" or something.  You will be forced to change password at first login.

putty-gradle-init-gradlew-ofbiz-load-data-seed-admin-user

Update 20220221

Edit /home/ec2-user/apache-ofbiz-18.12.05/framework/security/config\security.properties

Change:

# -- List of domains or IP addresses to be checked to prevent Host Header Injection,

# -- no spaces after commas,no wildcard, can be extended of course...

#--host-headers-allowed=localhost,127.0.0.1,demo-trunk.ofbiz.apache.org,demo-stable.ofbiz.apache.org,demo-old.ofbiz.apache.org

host-headers-allowed=localhost,127.0.0.1,yourec2instance.amazonaws.com


Type:

./gradlew "ofbizBackground --start" 

Press Enter

This starts OFBiz in the background.

putty-gradlew-ofbizBackground-start

Open Web Browser

Type:

https://ec2-xx-xxx-xx-xxx.us-west-1.compute.amazonaws.com:8443/accounting

Press Enter

Where xxx is equal to your server DNS address.

Click on Advanced

google-chrome-aws-dns-name-server-ofbiz-8443-accounting

Click on Proceed


google-chrome-aws-dns-name-server-ofbiz-8443-accounting-proceed

Enter User Name and Password

Type:

adminbigsteve

ofbiz

Click on Login


chrome-ofbiz-login-screen

Change Admin Password

Type:

ofbiz

something new

something new

Click on Submit

chrome-ofbiz-login-screen-change-admin-password

Login Successful

OFBiz is now installed on an AWS t2.micro server.

chrome-ofbiz-applications-accounting-manager

This completes this section of installing OFBiz 16.11.06 on an AWS t2.micro server.