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 the AEM war file - Deploy AEM war file
Installation check
To check if everything 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 both author and publish instance in one application server. In order achieve that, you need to:
- Change
sling.home
variable andsling.run.modes
variables of the publish instance - Unpack the
WEB-INF/web.xml
file from the AEM war file - Change the
sling.home
parameter to a different path (absolute and relative paths are possible) - Change
sling.run.modes
topublish
for the publish instance - Repack the
web.xml
file - Rename the war files, so they have different names. For example, rename one to
aemauthor.war
and the other toaempublish.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 make sure that in the
sling.properties
file the propertyfelix.service.urlhandlers
is set tofalse
. (The default is that it is set totrue
). - Start the two web applications again.
Application Servers Installation Procedures
WebSphere® 24.0.0.7
Before the deployment, please read the General Description above.
Server Preparation
-
Let Basic Auth Headers pass through:
- One way to let AEM authenticate a user is to disable the global administrative security of the WebSphere® server. In order to do that, 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 the AEM Web Application
-
Download the AEM war file
-
Make your configurations in the
web.xml
file if needed. For more info, see General Description above.- Unpack the
WEB-INF/web.xml
file - Change the
sling.run.modes
parameter topublish
- Uncomment initial
sling.home
parameter and set this path as you need - Repack the
web.xml
file.
- Unpack the
-
Deploy the 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.
-
Startthe AEM web application