You are reading the AEM 5.6 version of Installing AEM.
This documentation is also available for the following versions:
CQ 5.5 CQ 5.4 CQ 5.3
Adobe Experience Manager (AEM) is a server-side application that runs on the Java platform. It is available in two forms:
A standalone executable jar file referred to as a quickstart file.
A war file to be deployed in a third-party application server.
AEM is accessed entirely through the web browser. No client-side software, other than a compatible browser, is required.
The quickstart jar file contains the full stack needed for AEM. This includes:
Apache Felix OSGi container within which all other components are run.
Integrated HTTP server (no separate application server needed).
Apache Sling web application framework (provides REST-based request resolution).
CRX content repository that stores all content (no separate database needed)
AEM application built on the above stack (provides all the content management functionality and more).
The war file version of AEM includes all of the same components, except that the HTTP service is delegated to the application server within which the war file is deployed.
This section includes information on the following:
AEM system architecture is described in detail in Exploring AEM, which explains the underlying concepts and technologies.
Persistence Managers and Databases
The default installation of AEM (in either jar or war form) includes a built in persistent storage layer in which all content is ultimately stored. In some cases users may choose to re-configure AEM to use an external third-party database for storage. Any such database must, of course, be installed separately from AEM.
How to Install CQ Author and Publish Instances using Quickstart
Generally, when you set up Adobe CQ, you need to set up an Author and a Publish instance - see Author and Publish Environments for further details on the two types of environment.
Only US-ASCII characters are allowed in the name of the folder used to store the Quickstart jar (or any other runnable jar).
Note
The first time you start the jar file (either by double-clicking on it or via the command line), it unpacks itself and installs the CQ application in a sub-directory within the same directory as itself. However, once CQ is installed, restarting the jar file does not reinstall the system. It simply starts up the application.
Installing an Author Instance
This procedure describes how to set up a default Author instance on port 4502 of the desired host.
To install an author instance:
On the host file system, create a directory and name it author.
Copy the cq5-<version>.jar file into author/.
Rename cq5-<version>.jar to cq5-author-p4502.jar.
If you need a different port this can be set in the filename.
Copy a valid license.properties file into author/ as well (the same directory as the cq5-author-p4502.jar file).
If you do not provide the license.properties file, CQ will redirect you to the Welcome screen when starting the application, where you can enter a valid license key. You will need to request a valid license key from Adobe if you do not yet have one.
Start CQ Quickstart using one of the following methods:
If using a GUI file-system explorer, double-click the cq5-author-p4502.jar file.
Use a custom script located in the crx quickstart folder, such as server.bat to start CQ.
The Start and Stop scripts are for UNIX, Linux, and Macintosh. The server.bat script is for Windows.
Note
You cannot use a custom script when you install the cq quickstart jar file (the first time it is started) unless you expand the file first. Use the -unpack option on the command line to unpack the contents before running the script as in java -jar cq5-author-p4502.jar -unpack.
When the installation is completed, you are automatically presented with a new web browser window opening http://localhost:4502/.
With the default settings, the syndication agent points toward the publish instance at http://localhost:4503/.
Installing a Publish Instance
To set up a publish instance on port 4503 of the desired host, you perform the same steps as in installing an author instance except that you create a directory named publish (instead of author) and you rename the quickstart.jar file as cq5-publish-p4503.jar. You can select any port number.
To install a publish instance:
On the host file system, create a directory and name it publish.
Copy the cq5-<version>.jar file into publish/.
Rename cq5-<version>.jar to cq5-publish-p4503.jar.
If you need a different port this can be set in the filename.
Copy a valid license.properties file into publish/ as well (the same directory as the cq5-publish-p4503.jar file).
If you do not provide the license.properties file, CQ will redirect you to the Welcome screen when starting the application, where you can enter a valid license key. You will need to request a valid license key from Adobe if you do not yet have one.
Start CQ Quickstart using one of the following methods:
If using a GUI file-system explorer, double-click the cq5-publish-p4503.jar file.
Use a custom script located in the crx quickstart folder, such as server.bat to start CQ.
The Start and Stop scripts are for UNIX, Linux, and Macintosh. The server.bat script is for Windows.
You cannot use a custom script when you install the cq quickstart jar file (the first time it is started) unless you expand the file first. Use the -unpack option on the command line to unpack the contents before running the script as in java -jar cq5-publish-p4503.jar -unpack.
When the installation is completed, you can browse your site (for example, http://localhost:4503/content/geometrixx/en/company.html
Installing a CQ Instance - Generic Procedure
This procedure is a generic, quickstart procedure for installing CQ; it installs an author instance using default settings and file names. It is often used when testing, or other scenarios when you need a quickly available instance.
Copy the cq5-<version>.jar file to the desired directory on the host file system.
Copy a valid license.properties file into the same directory as the cq5-<version>.jar file).
If you do not provide the license.properties file, CQ will redirect you to the Welcome screen when starting the application, where you can enter a valid license key. You will need to request a valid license key from Adobe if you do not yet have one.
Start CQ Quickstart using one of the following methods:
If using a GUI file-system explorer, double-click the cq5-<version>.jar file.
Use a custom script located in the crx quickstart folder, such as server.bat to start CQ.
The Start and Stop scripts are for UNIX, Linux, and Macintosh. The server.bat script is for Windows.
You cannot use a custom script when you install the cq quickstart jar file (the first time it is started) unless you expand the file first. Use the -unpack option on the command line to unpack the contents before running the script as in java -jar cq5-<version>.jar -unpack.
When the installation is completed, you are automatically presented with a new web browser window opening http://localhost:4502/.
CQ Quickstart selects the first available port from the following list:
4502,8080,8081,8082,8083,8084,8085,8888,9362,<random>
Starting AEM is similar to installing it, you can:
double-click the AEM quickstart file
or start AEM from the command line
or use a custom script
To start AEM, navigate to the location of your quickstart jar file and do one of the following:
If using a GUI file-system explorer, double-click the quickstart jar file; for example:
cq5-<version>.jar
If using the command line, type:
for a 32bit VM: java -Xmx384M -jar cq5-<version>.jar
or, with a 64bit VM: java -XX:MaxPermSize=128m -Xmx384M -jar cq5-<version>.jar
To use a customized script you need to expand the quickstart.jar file first. Use the -unpack option on the command line to unpack the contents before running the script.
Various log messages will be shown on the command line, the actual appearance will depend on the platform you are using.
AEM starts and automatically redirects your web browser to the appropriate page, usually the login page; for example:
http://localhost:4502/
Once logged in, you have access to AEM WCM. See the AEM WCM User Guide for details on using AEM WCM.
Starting AEM from the Command Line
The start script is available under the <cq-installation>/bin directory. Both Unix and Windows versions are provided. The script starts the instance installed in <cq-installation> directory.
Those two versions support a list of environement variables that could be used to start and tune the AEM instance.
Environment variable
Description
CQ_PORT
TCP port used for stop and status scripts
CQ_HOST
Host name
CQ_INTERFACE
Interface that this server should listen to
CQ_RUNMODE
Runmode(s) separated by comma
CQ_JARFILE
Name of the jarfile
CQ_USE_JAAS
Use of JAAS (if true)
CQ_JAAS_CONFIG
Path of the JAAS configuration
CQ_JVM_OPTS
Default JVM options
Windows platform start.bat script example
SET CQ_PORT=1234 & ./start.bat
Unix platform start script example
CQ_PORT=1234 ./start
Note
The start script launches the AEM Quickstart installed under the <cq-installation>/app folder.
Accessing CRXDE Lite and the Apache Felix Management Console
Once AEM WCM has been started, you can also access:
CRXDE Lite - used to access and manage the repository
Web Console - used to manage or configure the OSGi bundles (also known as the OSGi Console)
Accessing CRXDE Lite
To open CRXDE Lite you can select CRXDE Lite from the welcome screen or use your browser to navigate to
http://<host>:<port>/crx/de/index.jsp
For example: http://localhost:4502/crx/de/index.jsp
Accessing the Web Console
To access the Adobe CQ Web console you can select OSGi Console from the welcome screen or use your browser to navigate to
http://<host>:<port>/system/console
For example: http://localhost:4502/system/console
or for the Bundles page http://localhost:4502/system/console/bundles
If you started AEM from either a script or the command line, press Ctrl+C to shut down the server.
If you have used the start script on UNIX, you must use the stop script to stop AEM.
If you started AEM by double-clicking the jar file, click the On button on the startup window (the button then changes to Off) to shut down the server.
Stopping AEM from the Command Line
The stop script is available under the <cq-installation>/bin directory. Both Unix and Windows versions are provided. The script stops the running instance installed in <cq-installation> directory.
Unix platform stop script example
./stop
Windows platform stop.bat script example
./stop.bat
Custom Installation
For any customization you want to make to the AEM installation, several options are available via the command line. You can either use the available options or rename the Quickstart file for custom uses.
Changing the Port Number by Renaming the File
The default port for AEM is 4502. If that port is not available or already in use, Quickstart automatically configures itself to use the first available port number as follows: 4502, 8080, 8081, 8082, 8083, 8084, 8085, 8888, 9362, <random>.
You can also set the port number by renaming the quickstart jar file, so that the file name includes the port number; for example, cq5-publish-p4503.jar or cq5-author-p6754.jar.
There are various rules to be followed when renaming the quickstart jar file:
When you rename the file, it must start with cq; as in cq5-publish-p4503.jar.
It is recommended that you always prefix the port number with -p; as in cq5-publish-p4503.jar or cq5-author-p6754.jar.
Note
This is to ensure that you do not need to worry about fulfiling the rules used for extracting the port number:
the port number must be 4 or 5 digits
these digits must come after a dash
if there are any other digits in the filename, then the port number must be prefixed with -p
the "cq5" prefix at the beginning of the filename is ignored
You can also change the port number by using the -port option in the start command.
Relocating or Preconfiguring the Repository
The default location of the folder holding the files of the CRX repository within AEM is:
crx-quickstart/repository/
With the default configuration file being:
crx-quickstart/repository/repository.xml
Sometimes you may want to relocate, or preconfigure, the repository; for example, when installing without a cluster or when using a different Persistence Manager.
Relocation must be configured before installation:
Create the new directory (<new-location>) for the repository files.
For example:
<cq-installation-dir>/repositoryRelocated/
Navigate to the <cq-installation-dir> directory (holding the installation jar file cq5-<version>.jar and license.properties).