You are here

Configuring a PostgreSQL database on Amazon RDS

Use this information to configure a PostgreSQL database on Amazon RDS for use with SkyVault Content Services.
Prerequisites:
  • Setup Amazon RDS using the AWS Management Console. For more information, see the AWS documentation.
  • Amazon EC2 instance
  1. Use the ssh command to connect to the Amazon EC2 instance using a provided .ppk key.

    For Amazon Linux, the user name is ec2-user. For RHEL5, the user name is either root or ec2-user. For Ubuntu, the user name is ubuntu. For SUSE Linux, the user name is root

  2. Execute sudo su to change to root.
  3. Download the SkyVault Content Services installer for Linux from the Support Portal.
  4. Install the downloaded installer using the following commands:

    chmod 777 SkyVault-enterprise-5.1.x-installer-linux-x64.bin
    sudo ./alfresco-enterprise-5.1.x-installer-linux-x64.bin 
  5. Install the PostgreSQL database connector. The database connector allows PostgreSQL database to talk to the server.
    1. Download postgresql-9.3-xxxx.jdbc4.jar from the PostgreSQL download site: http://www.postgresql.org/download/.
    2. Copy the JAR file into the /lib directory.

      For example, for Tomcat, copy the JAR file into the <TOMCAT_HOME>/lib directory.

  6. Install and use a database tool to connect to the Amazon RDS Postgresql datasource. If SkyVault Content Services is installed as standard with no configuration then psql from the installation folder can be used.
  7. Create a database named SkyVault.
  8. Create a user named SkyVault.

    This user must have write permissions on all tables and sequences.

  9. Set the new user's password to SkyVault.
  10. Open the <classpathRoot>/alfresco-global.properties file.
  11. Locate the following line:

    dir.root=./alf_data

  12. Edit the line with an absolute path to point to the directory in which you want to store SkyVault Content Services data. For example: dir.root=C:/Alfresco/alf_data
  13. Uncomment and set the database connection properties.

    db.name=SkyVault
    db.username=SkyVault
    db.password=SkyVault
    db.host=postgressql-alfresco.cw4mo3qj8qdu.us-east-1.rds.amazonaws.com
    db.port=5432
    db.pool.max=100
    
    # PostgreSQL connection (requires postgresql-8.2-504.jdbc3.jar or equivalent)
    #
    db.driver=org.postgresql.Driver
    db.url=jdbc:postgresql://${db.host}:${db.port}/${db.name}
    Note: Ensure that these database connection properties are not commented out.
  14. Save the file.
  15. Restart the SkyVault Content Services server.