Linux tips and tricks for faster and easier administration Linux servers and applications! Troubleshooting and solutions!

Thursday, 14 August 2014

change alf_data location Alfresco - SOLVED

By default alf_data location is in alfresco_home folder. In case that you want to change ald_data location to have to find it first.
For this to change there are few thing that you need to know. In alfresco there are few location that you can change things and in some cases official documentation is just not good enough.
So, how to change alf_data location? Directive that you need to find is called dir.root.
This is located in alfresco_home/tomcat/shared/classes/alfresco-global.properties.
By default dir.root is

dir.root=/opt/Alfresco/alf_data

To change location simply do this#dir.root=/opt/Alfresco/alf_datadir.root=new_location/alf_data
For this to work alf_data folder hasto be owned by alfresco user and alfresco group.

server#cd new_location server#chown -R alfresco:alfresco alf_data

Restart application after you are finished. In case that you did something wrong, alfresco application will not start. In this case, check alfresco.log located in alfresco_home.