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
Select Download
Click on the suggested site.
Download status show in the lower left corner of you web browser.
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.
Right Click on apache-ofbiz.18.12.05.zip
Select Upload
Click on Ok to Upload file to /home/ec2-user
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
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.
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.
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
Click on Proceed
Enter User Name and Password
Type:
adminbigsteve
ofbiz
Click on Login
Change Admin Password
Type:
ofbiz
something new
something new
Click on Submit
Login Successful
OFBiz is now installed on an AWS t2.micro server.
This completes this section of installing OFBiz 16.11.06 on an AWS t2.micro server.