cancel
Showing results for 
Search instead for 
Did you mean: 

Install Share to different server

edward_bishop
Champ in-the-making
Champ in-the-making
Hi,

Version: Community 4.2.f
OS:  CentOS 6.5
Tomcat version:  6

Does anyone have any guidance for the best way to move the Share portal to a separate machine on the network.  I'm trying to follow the instruction here (<a>https://docs.alfresco.com/4.0/tasks/share-tomcat-deploy.html</a>) however I don't have a web-extension directory and as such the share-config-custom.xml file to configure. 

I have moved the share.war into the webapps directory and started/stopped tomcat to explode it.

Many thanks,
Edward
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
you need to make the directory if it does not exist.     shared/classes/web-extension

And make sure you change the catalina.properties to have shared/classes on the shared.loader.

Also create your  share-config-custom.xml and put your overrides in there.

Hi mrogers,

Thanks for the response, I've only just got the time to come back to this.

I have created the directories and I have shared/classes on the share.loader,
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar

and I have changed share-config-custom.xml to use the separate server instead of localhost where I thought it was needed. It's still not working. 

When tomcat starts I receive the following error, I'm not sure whether it is significant or not.
 log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException:  share.log (Permission denied)


Let me know if the complete logs are required and I'll figure out how to get them, they're on an isolated system in a vDC so I can't copy and paste them here.

Please let me know if there are any major steps that I have missed here,  I'll try and outline what I have so far.

1. Alfresco and Share both running on a machine in network 10.10.10.0/24
2. The Share.war that has been exploded out on machine in network 10.10.0.0/24
3. I have followed the steps on the website (link in first post) as well as the steps from mrogers. (I'm not entirely sure what you mean by 'overrides' in the share-config-custom.xml.  Again, I can post this file if it will be of assistance)
4. alfresco-global.configuration set to use the remote Share machine
5. Both machines restarted

Kind regards,
Ed