Bitnami Alfresco

    Alfresco is an Enterprise Content Management (ECM) system featuring Document Management, Web Content Management, Collaboration Management, Records Management and Image Management. Alfresco Bitnami Stack ships the previous repository interface at "/alfresco" and the new one at "/share".

    Please, take a look to the Quick Start Guide to know the basic use of this Stack.

    How to start/stop the servers?

    Graphical tool

    The Stacks include a graphical tool to manage the servers easily. You can find the "manager-windows.exe", "manager-osx" or "manager-linux" tool in your installation directory. Using this tool, you can Start, Stop or Restart the servers and check the log files. You can click on the icon to start it.














    On Windows: You can also start the Manager tool from shortcuts: Start -> Program Files -> BitNami Stack -> Manager tool

    Command line tool

    If you prefer, you can use the "" utility from the command line. This script is in the installation directory.


    On Virtual Machines and Cloud images:

    $ sudo /opt/bitnami/ start

    A native installer on Linux:

    $ cd ~/application-version
    $ ./ start



    On OS X: You can start the Manager tool from the installation directory or you can use the "" utility from a Terminal.

    host:~ user$ cd /Applications/application-version
    host:~ user$ ./ start

    How to create a full backup of Alfresco Stack?

    Because BitNami stacks are self-contained, the simplest option for performing your backups is to copy or compress the BitNami Stack installation directory. To do so in a safe manner, you will need to stop all servers, so this method may not be appropriate if you have people accessing the application continously.

    linux_platform.pngOn Virtual Machines and Cloud Images:

    sudo /opt/bitnami/ stop


    On OS X:

    $ cd installdir
    $ ./ stop
    $ cp -r installdir application-backup

    Or you can create a tarball:

    $ tar -czvf application-backup.tar.gz installdir

    Or a zip file:

    $ zip -r installdir/*

    To restore this backup you only need to uncompress the backup in the same location. It is important to use the same path that was used when the stack was originally installed.

    For example if you have a backup in a Red Hat machine, you can copy it to an Ubuntu Linux machine (a different distro!) in the same location. Then start the servers and that’s all.

    On Virtual Machines and Cloud Images:

    $ sudo /opt/bitnami/ start

    On OS X:

    $ cd installdir
    $ ./ start

    You just need to be carefull to keep the same permissions for the files and folders. If you installed as root make sure that in the new machine you copy the files also as root. And this case, if you are also moving MySQL or PostgreSQL, you will need to create those users in the new machine (if they don't exist yet).

    win_platform.png On Windows you should follow the same process. Stop the servers using the shortcuts and copy the whole installation directory. To restore the system, copy the directory to a different Windows machine in the same location and follow these steps from a command prompt:

    $ cd installdir
    $ serviceinstall.bat INSTALL

    You can access your BitNami Application at the usual URL.

    If you want to create only a database backup, check the following link for MySQL /Components/MySQL#How_to_create_a_database_backup or for PostgreSQL /Components/PostgreSQL#How_to_create_a_database_backup.3f

    How to upgrade Alfresco?

    It is strongly recommended that you create a backup before starting the update process. If you have important data, it is advisable that you create and try to restore a backup to ensure that everything works properly.

    There are two different ways to upgrade your application.

    1. If you want to upgrade the application and all Stack components PHP, Ruby, MySQL, Apache… You can follow the steps described at How to upgrade the full Stack migrating the data?
    2. In case you only want to upgrade the application code without modifying any other Stack components,  you should follow the guide which is in the application page itself.

    How to configure Java memory settings on Alfresco?

    These are the default memory settings for Java:

    JAVA_OPTS="-XX:MaxPermSize=512m -Xms256m -Xmx512m"

    You can increase these Java settings for you application if it is necessary. You can find them in the /installdir/apache-tomcat/bin/ file for native installers for Linux and OS X. For Cloud Images you can find the Java memory settings in the /opt/bitnami/java/bitnami/

    export JAVA_OPTS="-XX:MaxPermSize=256M -Xms256M -Xmx768M $JAVA_OPTS"

    IMPORTANT: This file is a symlink to a "", ""...  depending on the instance type that you are currently using. The symlink will be automtically changed when you resize your server.

    For Windows you should modify the /installdir/apache-tomcat/bin/setenv.bat and reinstall the services.

    > cd installdir
    > serviceinstall.bat UNINSTALL
    > serviceinstall.bat INSTALL

    How to enable Google Docs integration with Alfresco?

    Since Bitnami Alfresco 4.2.c-1 version, you can easily enable Alfresco integration with Google Docs. Before you enable Google Docs integration, set up a Google Docs account that will be used for administrative purposes for the integration between Alfresco and Google Docs.

    It is only necessary to edit the "installdir/apache-tomcat/shared/classes/" file and set the following options:


    # Enables Goggle Editable functionality set to true to enable
    # Google Docs system authentication credentials account Alfresco will use a tempt account 
    # for everyone
    # Google docs Application name ECM system
    # Google Docs URL
    # Google Docs Spreadsheet Service

    Then restart the Tomcat server:

    $ installdir/ restart tomcat

    Once you have enabled it, create your own site in Alfresco application and open the "Document Library". In the "Create Content" option, you can create a Google Docs document and start to editing it.

    If you see an error similar to this:

    Error Message: 11260001 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/googledocs/toolbar.get.js': 11260000 Error: Parameter "site" is missing.

    Maybe you are trying to create a google docs document in your repository directly. It is necessary to create an Alfresco site and create the Google Document in the "Document Library".

    How to install a plugin on Alfresco?

    Alfresco have package modules called AMPs which you can install on top of the basic installation.

    To install any AMP on top of the Bitnami Alfresco, you can follow the same steps that you can see to install Alfresco Records management Module.

    • Download and extract the files
    • Move the alfresco-community-dod5015-3.4.d.amp file to the amps directory. There are two directories depending on the AMP is for the "/alfresco" application or for the "/share" application. On Linux and Mac OS X you can execute:
      $ mv *.amp installdir/apps/alfresco/amps
      $ mv *.amp installdir/apps/alfresco/amps_share

      You can use "sudo" if you are using the Virtual Machine or the Amazon Cloud Images.
    • Stop the Apache Tomcat server. You can use the Manager tool or the commands below.
      $ cd installdir
      $ ./ stop tomcat
    • Run the apply_amps command, which is in the root Alfresco directory. On Windows execute the apply_amps.bat script. On Unix and Mac OS X you can execute the below.
      $ cd installdir/apps/alfresco
      $ ./

      You can use "sudo" if you are using the Virtual Machine or the Amazon Cloud Images. It is necessary to change the permissions of the new war files:

      $ sudo chown -R tomcat:tomcat /opt/bitnami/apache-tomcat/webapps

    • Start the Apache Tomcat server. You can use the Manager tool or the commands below.
      $ ./ctlscript start tomcat

    How to install SharePoint Protocol Support AMP?

    SharePoint Protocol Support allows you to edit documents in Alfresco using Microsoft Office. To install it, download the package from the Alfresco official site. When this guide was written, the Alfresco version was 4.2.f so we are going to use it in the examples.

    The steps described here use /opt/bitnami as installation directory. Use your own installation directory if you are using a native installed. The chown command is not needed in case you installed Alfresco as normal user.

    cd /home/bitnami
    sudo su
    cd /opt/bitnami
    ./ctlscript stop tomcat
    cp /home/bitnami/alfresco-community-spp-4.2.f.amp apps/alfresco/amps/
    cp /home/bitnami/alfresco-community-spp-4.2.f.amp apps/alfresco/amps_share/
    chown -R tomcat:tomcat apache-tomcat/webapps
    ./ start tomcat

    With these commands, you have installed the SharePoint Protocol in you Alfresco Stack. The default port to use it is 7070. You can change it by editing the vti configuration files:



    If you are using a Virtual Machine or a Cloud Image, you have to open the port.

    After that, you can access from any machine to the Alfresco SharePoint Module using a browser through



    SharePoint Module main page


    Finally, you can open your Alfresco Files directly using Microsoft Word. Click Open and insert the URL in the File Name field.



    Opening Alfresco in Microsoft Word

    That's all, you have now your SharePoint Module up and running.

    How to configure the email settings of Alfresco?

    Outbound email configuration

    To send emails from Alfresco application via SMTP protocol, it is necessary to specify the SMTP settings in the installdir/apache-tomcat/shared/classes/ file. The following example shows how to configure Alfresco using a GMail account:

    ### SMTP Configuration ###                                                                       

    Then, restart the Tomcat server:

    $ sudo installdir/ restart tomcat
    Inbound email configuration

    To send emails to Alfresco using the SMTP protocol you'll have to specify the following parameters in  installdir/apache-tomcat/shared/classes/ file.

    win_platform.png On Windows 


    linux_platform.png On Linux


    We configure the Tomcat server to use the "tomcat" user and not the root user for security reasons. The problem is that Tomcat does not have privileges to bind the 25 port, so you need to specify another port, 2025 for instance, and then create a port forwarding rule in your system to redirect all requests from 25 port to 2025 port. It is only necessary to run the following command:

    sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25 -j REDIRECT --to-port 2025
    You can check the iptables rules with this command:
    sudo iptables -t nat -L -n -v
    Check that you added port 25 in your firewall to have external access. Restart the alfresco application, this could take some time:
    sudo installdir/ restart tomcat
    From another machine you can check that everything is ok using telnet:
    telnet your_host_name 25
    You can see something similar to this:
    Trying your_ip...
    Connected to your_host_name .
    Escape character is '^]'.
    220 your_server_domain ESMTP SubEthaSMTP 3.1.6

    How to enable CIFS and/or FTP for Alfresco?

    To enable CIFS in Alfresco it is necessary to open the 445 port. If you have installed the Native Stack you probably have access to that but if you are using the Virtual Appliance or the AMI it is necessary to open this port.

    This guide to know how to open a port in the Virtual Appliances firewall or this guide to open a port in Bitnami Cloud Hosting.

    The Virtual Machines and AMIs have an internal FTP server installed. You can also enable to access to it. In this case it is necessary to open the 21 port in the firewall and comment the following line in the /etc/vsftpd.conf file:


    Then you can restart the vsftpd server:

    $ sudo service vsftpd restart

    How to configure a redirect for main page to /share?

    Alfresco runs in the "/share" URL by default. If you want to add a simple redirection from your main domain to the "/share" application, you can add the following at the beginning of the file in the "/opt/bitnami/apps/alfresco/conf/httpd-app.conf" file.

    Redirect / /share

    Then restart Apache server:

    sudo /opt/bitnami/ restart apache
    Tag page (Edit tags)
    • No tags
    Pages that link here
    Page statistics
    59831 view(s), 25 edit(s) and 13774 character(s)


    You must login to post a comment.