Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ChrisTr3

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

15 replies

Level 3
October 16, 2015

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

Level 6
October 16, 2015

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.


 

Level 3
October 16, 2015

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

 

Note:The investigations on Linux os.

 

Thanks

Mahesh

Level 3
October 16, 2015

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.

Level 3
October 16, 2015

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

Level 3
October 16, 2015

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

Level 6
October 16, 2015

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.

Level 3
October 16, 2015

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.

Level 6
October 16, 2015

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.

Level 3
October 16, 2015

Thanks i got it for windows.

 

But for linux it is taking diff port.