cancel
Showing results for 
Search instead for 
Did you mean: 

Installing Two Alfresco on same server

ephronlakshman
Champ in-the-making
Champ in-the-making
Hello,

I have installed Alfresco 3.3 community edition successfully on the server and currently using http://localhost:8080.

Now I am trying to install another Alfresco on the same server using the port 8081(using different path for 2nd installation) and using jdk1.6.0_19(1st installed Alfresco using the same jdk). But Installation not successfully and may be due to the following error.

————————–
20:50:18,568 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avmRemoteService' defined in class path resource [alfresco/remote-services-context.xml]: Invocation of init method failed; nested exception is java.rmi.server.ExportException: Port already in use: 50501; nested exception is:
        java.net.BindException: Address already in use
————————-

Please suggest how should I proceed with second installation of Alfresco on the same server.

Waiting for the replies and thanks in advance.


Thanks,
ephronlakshman
5 REPLIES 5

loftux
Star Contributor
Star Contributor
Maybe Multi Tenancy is what you are looking for?

ephronlakshman
Champ in-the-making
Champ in-the-making
Hello,

Thanks for responding Smiley Happy

Enabled MT and restarted Alfresco and logged in Tenant console also. Creation of new tenant will be updated in same database ??  Is there any possibility that each created tenants will have separate databases ??

Thanks,
Ephronlakshman

loftux
Star Contributor
Star Contributor
I don't think it is possible to separate databases. However you can separate the content store when creating new tenants (optional parameter).
An export of a tenant will also get you all data (db+content), so if you later need to move one tenant that should be possible.

mrogers
Star Contributor
Star Contributor
You can also fairly easily run multiple Alfresco repo's on a single machine.   (I have 3)

The easiest way is to do this is to have multiple instances of tomcat and move the confilicing resources which will be the database schema and tcp ports.    Turn off featues like CIFS and ftp that require "well known ports".   You will need to change the tomcat's server.xml and alfresco-global.properties and create a new empty schema and account for each extra instance of alfresco.

You should also be able to run the latest versions of Alfresco binding each instance to a separate IP address.   I've not yet tried this myself but I've seen the JIRA ticket fixed.

ephronlakshman
Champ in-the-making
Champ in-the-making
Hello,

Installed Two Instance of Alfresco on the same server in 8080 and 9080 port. Have made port changes in alfresco-global.properties and server.xml files it works fine. Thanks for the timely replies Smiley Happy

After this I face two login issues.
1) Alfresco 8080 & 9080 admin logins only after twice entry of Password.
2) After login into two(8080 & 9080) admins, session ends very quickly for both admins.

Any solution for the above issue or any Hints ??

Thanks,
Ephronlakshman