Home > Support > HOWTO List > Alfresco install

Our guide below is a bit old now and is only useful for alfresco v3. The latest stable at time of writing is v4.1. If you need us to help with an up to date install please let us know and we can sort that out for you.


Alfresco is a popular content management system (CMS).  It is written in Java.

Standalone Alfresco Installation

The following code will install alfresco on your server.

wget "http://proj.ri.mu/installalfresco.sh"
bash installalfresco.sh

Then browse to "http://yourip:8180/alfresco"

The script sets up alfresco on port 8180 so it does not conflict with the likes of JBoss, Tomcat or Liferay.

The wget-able file (above) will the be the newest version of the following code (which will likely now be out of date - but will give you the gist of what the script will run).

Pending: what does alfresco use as its default username/password?

mkdir /usr/local/alfresco
cd /usr/local/alfresco
wget http://optusnet.dl.sourceforge.net/sourceforge/alfresco/alfresco-community-tomcat-1.4.0.tar.gz
tar xzf alfresco-community-tomcat-1.4.0.tar.gz
mysqlpass=$(cat /root/.mysqlp)

mkdir -p tomcat/shared/classes/alfresco/extension.removed
mv tomcat/shared/classes/alfresco/extension/custom-db-and-data-context.xml tomcat/shared/classes/alfresco/extension/custom-db-connection.properties tomcat/shared/classes/alfresco/extension/custom-hibernate-dialect.properties tomcat/shared/classes/alfresco/extension.removed

adduser -s /sbin/nologin -d /usr/local/alfresco alfresco
wget -O /etc/init.d/tomcat http://proj.ri.mu/javainitscript
ln -sf /etc/init.d/tomcat  /etc/init.d/alfresco
replace 8005 8105 8009 8109 8080 8180 -- tomcat/conf/*.xml
/etc/init.d/alfresco start
ip=$(ifconfig | grep --after-context=1 "eth0 " | grep inet | cut -d: -f2 | cut -f1 -d' ')
chkconfig --level 35 $(basename $mysql) on
chkconfig --level 35 alfresco on
echo See alfresco running at "http://$ip:8180/alfresco"
wget -O - "http://$ip:8180/alfresco" --server-response  2>&1 | grep -qai 'My Alfresco'
if [ $? -eq 0 ]; then echo 'Looks like Alfresco is loading correctly'; else
        echo "There could be a problem with Alfresco, it did not load as expected"

Alfresco integrated with Liferay

If you want to install Alfresco as a portlet extension to Liferay, see the liferay install howto.

Alfresco 2.1.0


cp /usr/local/tomcat/bin/setenv.sh /usr/local/alfresco/tomcat/bin/setenv.sh 

and then make the memory numbers higher.  This generated a warning in catalina.out:

01:58:01,373 WARN  [service.descriptor.DescriptorService] Alfresco JVM - WARNING
 - maximum heap size 95.313MB is less than recommended 512MB