Install Alfresco on Ubuntu 14.04

Install alfresco on Ubuntu 14.04

I am going to write a post about how to install Alfresco on Ubuntu 14.04, I used a blog by so a lot of my information comes from this and I am by no means an Alfresco expert.

I went through the pain of the installation which was worth it.

I am going to try and aim this post at beginners like myself – some of the lower level points in fcorti’s  blog were not explained in huge detail for beginners so I am going to give it down to command level, and some of the software repositories were not available.

Full credit to as that was the only concise explanation I could find on the web how to do this install – for reference the blog is at

You can reference fcorti’s blog for a more detailed explanation my post is just going to be commands and steps.

This guide is based on Alfresco 5.0 a but I have read other posts explaining that it works also for 5.0 d – I will write another post once I upgrade.

To contribute to the community I am going to give the process I went through.

Lets Begin!

Prepare your OS for the install

Create the alfresco user

Get the java package to any location

Copy the java package to the correct location and extract

Using the editor of your choice add the below lines to your home .profile and /etc/profile.d/

Install ffmpeg

Install swftools

Download postgres and create the user

Create the Afresco database

Create the alfresco home directory and modify permissions

Get the tomcat package, un-compress, extract and rename it

Change ownership of tomcat, start it, check the java process, check the URL and shutdown if all is OK

Now for the Alfresco Install

Backup the tomcat properties file and edit the shared.loader line

Backup the tomcat server file and edit

Modify the context.xml

Create the Alfresco directory structure

Download and unzip the Alfresco software

Copy the required extracted files into the relevant software locations

Create a start open office file to be used by the daemon

Change the permissions of the Alfresco startup script

Create an alfresco deamon startup script and modify the permissions and owner

Create the alfresco data area

Backup the alfresco properties files and edit ensuring all the parameters are as below

Start the alfresco service and then tail the log and look closely for any errors

If everything is successful then stop the service, modify the parameter that tells alfresco to create the DB and restart

Not included in some of the blogs that I have read are gotchas below


When I was installing when I tried to start alfresco after the install, during the Tomcat startup it hung at the deployment at some of the apps – there are many blogs and posts about deleting the unused Tomcat apps – I didn’t delete them I just moved them to a new ‘old’ folder

My cloud server started creaking at the heels once I started Tomcat up and started giving me all kinds of memory issues so another good one to limit the memory your Tomcat installation will use is to modify the JAVA_OPTS parameter in the Tomcat conf file.  Also you can adjust the memory settings as per your resources.

I know a lot of the information here is the same as the original blog I references, and I am not in the plagiarism business 🙂 but hopefully I added a few other points.  I will try and answer any questions I can around the installation in reference to my working installation.

Hope this helps, please share or comment if you found it useful!


IT consultant with 20+ years experience specialising in Oracle Database, Oracle Business Intelligence, Web/Mobile development, Application Express development, cloud technology and more

Leave a Reply

Your email address will not be published. Required fields are marked *