Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

CQ5.6 Installation?

Avatar

Level 3

Hi,

 

Please let me know the installation of CQ5.6 author and publish instances.

 

Thanks in Advance.

Mahesh

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi Mahesh,

You can find some installation instructions as well as a lot more information on http://docs.day.com .

Specifically for installation it would be:  http://dev.day.com/docs/en/cq/current/deploying/installing_cq.html#Installing%2520CQ

Chris

View solution in original post

15 Replies

Avatar

Correct answer by
Level 2

Hi Mahesh,

You can find some installation instructions as well as a lot more information on http://docs.day.com .

Specifically for installation it would be:  http://dev.day.com/docs/en/cq/current/deploying/installing_cq.html#Installing%2520CQ

Chris

Avatar

Level 3

Thanks for you reply chris.

I have followed the instructions aswell but while installing the publish instance it is taking 4502 port after renaming the jar with 4503.

Changed the start script aswell on publish instance.

Let me know how to resolve it.

 

Thanks in advance.

Mahesh

Avatar

Level 6

In some windows system, when you copy-paste the file name (that is common way of renaming it when you read the manual), you get double .jar extension so the file name of the jar actually is cq5-publish-p4503.jar.jar. And then it will start as an author instance.

Make sure that the file name is that.

I actually don't use that method to install anymore. I use the expand command, java -jar cq5-publish-p4503.jar -unpack and then alter the start.bat or start.sh files so that they correspond to what I need.

Edit: Once you have installed an instance, it can't change into the other type of instance. An author is an author, even if you change port and type.

/Ove

Avatar

Employee

Hello Mahesh,

It looks like you are starting CQ by executing a start-up script from /crx-quickstart/bin directory. Therefore you need to edit the script and change an argument for TCP port used for stop and status scripts: CQ_PORT=4503.

Regards,

Avatar

Level 3

You are right.

 

I checked for that also .jar.jar but i am sure it is with only one extension.

Avatar

Level 3

Thanks i got it for windows.

 

But for linux it is taking diff port.

Avatar

Level 6

Q: You are changing the .sh file and not the .bat?

Q: You don't have the CQ_PORT defined as a system parameter? That will then take precedence over what you type in the bat/sh.

Avatar

Level 3

First the version is CQ5.6

Let me explain the process what am following for publish.

1)Am using the below command to install

java -XX:MaxPermSize=256m -Xmx1024M -jar cq5-publish-p4503.jar

2)Am getting this after executing the above command

Option '-r' set to 'publish' from filename cq5.6-publish-p4503.jar
Setting 'sling.run.modes' to 'publish' from filename.
Verbose option not active, closing stdin and redirecting stdout and stderr
Redirecting stdout to /root/CQ5/publish/./crx-quickstart/logs/stdout.log
Redirecting stderr to /root/CQ5/publish/./crx-quickstart/logs/stderr.log
Press CTRL-C to shutdown the Quickstart server...


After that it is starting automatically http://localhost:4503/content/geometrixx-outdoors-mobile/en.html

3) Next am unpacking using this java -jar cq5-publish-p4503.jar -unpack

4)Later changing the port no in start script for publish instance to 4503 and runmode is publish.

5) After changing that am executing the start script of publish instance , it is starting with 4502 port.

Avatar

Level 6

Well, you should use ONE of the ways of installing a publisher. Either you unpack, change the script accordingly and start the server for the first time and that will create all the repositories and data files and stuff in the correct publish instance way. Or you start it with quickstart as in step 1 and that will create all the repositories and data files and stuff in the correct publish instance way, alter the start scripts and run, but don't re-unpack.

Avatar

Level 3

I tried both ways as you said

1) I did unpack and changed the start script(with 4503 and publish) and executed the start script of publish instance.

It is starting with 4502 port only.

2)Second is executed java -XX...........

and changed the script of quickstart for 4503 and executed.

it is starting with 4503.

But my question is what is the need of start script.

When i change the start script of publish instance with 4503 it is taking 4502 port . why?

Thanks for helping

Avatar

Level 3

when i start using the start script after changing port and runmode still it is starting with 4502 port.

[root@cq5test bin]# ./start
[root@cq5test bin]# 29.08.2013 19:53:35.860 *INFO * [main] Setting sling.home=crx-quickstart (command line)
29.08.2013 19:53:35.886 *INFO * [main] No Apache Sling running at /127.0.0.1:33323
29.08.2013 19:53:35.888 *INFO * [main] Starting Apache Sling in /root/CQ5/publish/crx-quickstart
29.08.2013 19:53:35.898 *INFO * [Apache Sling Control Listener@/127.0.0.1:45626] Apache Sling Control Listener started
29.08.2013 19:53:35.913 *INFO * [main] Checking launcher JAR in folder /root/CQ5/publish/crx-quickstart/launchpad
29.08.2013 19:53:35.957 *INFO * [main] Existing launcher is up to date, using it: 2.4.1.R1416835 (org.apache.sling.launchpad.base.jar)
29.08.2013 19:53:35.966 *INFO * [main] Loading launcher class org.apache.sling.launchpad.base.app.MainDelegate from org.apache.sling.launchpad.base.jar
29.08.2013 19:53:36.024 *INFO * [main] Setting sling.launchpad=/root/CQ5/publish/crx-quickstart/launchpad
29.08.2013 19:53:36.025 *INFO * [main] Setting sling.home=crx-quickstart
29.08.2013 19:53:36.025 *INFO * [main] Setting org.osgi.service.http.port=4502
29.08.2013 19:53:36.025 *INFO * [main] Setting org.apache.felix.http.host=cq5test
29.08.2013 19:53:36.026 *INFO * [main] Starting launcher ...
29.08.2013 19:53:36.029 *INFO * [main] HTTP server port: 4502

Avatar

Level 3

This is what i Investigated.

Adobe CQ5.6:

Welcome screens are:

For Author instance:
http://localhost:4502/projects.html

For Publish instance:

http://localhost:4503/content/geometrixx-outdoors-mobile/en.html

The installation process is:

Two scenarios are

1)Install both the instances(author & publish)

By starting the publish instance we will get author instance aswell.

2)Install both the instances(author & publish)

By starting the author instance we will get publish instance aswell.

Avatar

Level 3

Can you please let me know your views about last post.

 

Note:The investigations on Linux os.

 

Thanks

Mahesh

Avatar

Level 6

Are you changing the correct file? The .sh and not the .bat?

There are TWO different instances. You normally install it like

/servers/aem/author/

/servers/aem/publish/

/servers/aem/dispather/

You can't run both author and publish on the same path, but you need to have two different "installations".

About why using the script. We alter the runmodes, memory settings, garbage collection, jmx-ports and many more things to get our servers to run as good as possible. That is not easy to do from command line every time we start.


 

Avatar

Level 3

Well,Install both the instances and can start both the instances on same window.