This is a quick tutorial that describes how to install the Hybris Commerce Suite License. This article also assumes you have the SAP Hybris license information in your possession.
- Open the command prompt
- Go to your Hybris config directory:
cd <HYBRIS_HOME_DIR>/config
- Create a new file in this directory. The filename you choose doesn't matter. For example, you could create a file called SAPHybrisLicense.txt
vi SAPHybrisLicense.txt
- Once the vi editor is displayed, copy and paste the Hybris license you received from the SAP License Management portal. The license will resemble the following:
----- Begin SAP License ----- SAPSYSTEM=PRD HARDWARE-KEY=XXXXXXXX INSTNO=XXXXXXX BEGIN=XXXXXXX EXPIRATION=XXXXXXX LKEY=XXXXXXXSWPRODUCTNAME=CPS_MYS SWPRODUCTLIMIT=XXXXXXX SYSTEM-NR=XXXXXXX
- Save the file
- Change directories to the Hybris Platform directory.
cd ${HYBRIS_HOME}/bin/platform
- Since the SYPSYSTEM attribute is not the default CPS setting, update the local.properties file with the PRD setting
# System ID
license.sap.sapsystem=PRD
- To install the license perform the following command:
Linux/Mac: ./license.sh -install ${HYBRIS_HOME}/config/SAPHybrisLicense.txt
Windows: license.bat -install ${HYBRIS_HOME}/config/SAPHybrisLicense.txt
- If the installation is successful, you will receive the following confirmation message:
1 SAP license key(s) successfully installed.
- Tutorial is complete