Configuration
You can change the default behavior in the following way:
-
run mode : configure the
sling.run.modes
parameter in theWEB-INF/web.xml
file of the AEM war file before deployment -
sling.home: configure the
sling.home
parameter in theWEB-INF/web.xml
file of the AEM war file before deployment -
context root: rename the AEM war file
Publish installation
To get a publish instance deployed, you need to set the run mode to publish:
- Unpack the WEB-INF/web.xml from the AEM war file
- Change sling.run.modes parameter to publish
- Repack web.xml file into AEM war file
- Deploy AEM war file
Installation check
To check if all is installed, you can:
- tail the
error.log
file to see that all content is installed - look in
/system/console
that all bundles are installed
Two Instances on the same Application Server
For demonstration purposes, it can be appropriate to install author and publish instance in one application server. For that do the following:
- Change sling.home variable and sling.run.modes variables of the publish instance.
- Unpack WEB-INF/web.xml file from the AEM war file.
- Change sling.home parameter to a different path (absolute and relative paths are possible).
- Change sling.run.modes to publish for the publish instance.
- Repack the web.xml file.
- Rename the war files, so they have different names. For example, one rename to aemauthor.war and the other to aempublish.war.
- Use higher memory settings. For example, default AEM instances use
-Xmx3072m
- Deploy the two web applications.
- After Deployment stop the two web applications.
- In both author and publish instances assure that in the sling.properties files the property felix.service.urlhandlers=false is set to false (default is that it is set to true).
- Start the two web applications again.
Application Servers Installation Procedures
WebSphere® 8.5
Before a deployment read the General Description above.
Server Preparation
-
Let Basic Auth Headers pass through:
- One way to let AEM to authenticate a user is to disable the global administrative security of the WebSphere® server, to do so: go to Security > Global Security and uncheck the Enable administrative security checkbox, save, and restart the server.
-
set
"JAVA_OPTS= -Xmx2048m"
-
If you want to install AEM using context root = /, change the context root of the existing Default web application.
Deploy AEM web application
-
Download AEM war file
-
Make your configurations In web.xml if needed (see above in the General Description)
- Unpack WEB-INF/web.xml file
- change sling.run.modes parameter to publish
- uncomment sling.home initial parameter and set this path as you need
- Repack web.xml file
-
Deploy AEM war file
- Choose a context root (if you want to set the sling run modes you need to select the detailed steps of the deploy wizard, then specify it in step 6 of the wizard)
-
Start AEM web application