Learn How To Install ResourceSpace on Ubuntu 16.10

April 20, 2019

Table of Contents

If you are using a different system, please check our other tutorials.

ResourceSpace is a free and open-source Digital Asset Management(DAM) software. It is written in PHP and uses MySQL to store its database. It provides a better way to organise, manage and share the digital assets such as images, design files, photos, videos, audio and more into an organisation.

In this tutorial, you will learn to install ResourceSpace on Ubuntu 16.10.

Prerequisites

  • An ITWeb.Services Ubuntu 16.10 server instance with at least 1024 MB of RAM.
  • A sudo user.

Step 1: System update

Before installing any packages on the Ubuntu server instance, it is recommended to update the system. Log in using the sudo user and run the following commands to update the system.

sudo apt-get update
sudo apt-get -y upgrade

Step 2: Install Apache web server

Install the Apache web server.

sudo apt-get -y install apache2

Start Apache and enable it to automatically run at boot time.

sudo systemctl start apache2
sudo systemctl enable apache2

Step 3: Install PHP 7

In this tutorial, we will use PHP 7 to obtain maximum security and stability. Install the latest version of PHP with the modules needed by ResourceSpace.

sudo apt-get -y install php php-dev php-gd php-mysql php-mbstring php-curl php-cli php-pear

Configure php.ini using any text editor of your choice.

sudo nano /etc/php/7.0/apache2/php.ini

Find the following lines and change their values according to the instructions provided.

memory_limit = 128M          //change it to any value greater than 512M
post_max_size 8M             //change it to 512M 
upload_max_filesize 2M       //change it to 512M

Step 4: Install MySQL

Install MySQL database server by running.

sudo apt-get -y install mysql-server

Start MySQL server and enable it to automatically start at boot time.

sudo systemctl start mysql
sudo systemctl enable mysql

Secure your MySQL installation.

sudo mysql_secure_installation

You will be asked for the current MySQL root password. Provide the root password set during installation and answer Y to all the questions asked. The questions which are asked are self-explanatory.

Step 5: Create database for ResourceSpace

Log into the MySQL shell as root user by running:

mysql -u root -p

Provide the password for the MySQL root user to log in.

Run the following queries to create a database and a database user for ResourceSpace.

CREATE DATABASE rs_data CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'rs_user'@'localhost' IDENTIFIED BY 'StrongPassword';
GRANT ALL PRIVILEGES ON rs_data.* TO 'rs_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

You can replace the database name rs_data and username rs_user according to your choice. Be sure to change StrongPassword to a very strong password.

Step 6: Install Few More Dependencies

For ResourceSpace to work, you will also need to install antiword ffmpeg perl-Image-ExifTool ImageMagick and xpdf.

Install the packages by typing:

sudo apt-get -y install antiword ffmpeg libimage-exiftool-perl imagemagick xpdf

Step 7: Install ResourceSpace

Download the ResourceSpace zip archive using:

wget https://www.resourcespace.com/downloads/ResourceSpace_8_1_10036.zip

You can always find the link to the latest version of software on the ResourceSpace download page.

Install unzip by running:

sudo apt-get -y install unzip

Extract the archive:

sudo unzip ResourceSpace*.zip -d /var/www/resourcespace

Provide the appropriate ownership to apache user.

sudo chown -R www-data:www-data /var/www/resourcespace

Step 8: Create virtual host

Run the following command to create a virtual host for your ResourceSpace site.

sudo nano /etc/apache2/sites-available/assets.example.com.conf

Add the following vhost configuration to the file:

<VirtualHost *:80>
    ServerName assets.example.com
    DocumentRoot /var/www/resourcespace
    <Directory /var/www/resourcespace>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
</VirtualHost>

Activate the configuration by running.

sudo a2ensite assets.example.com.conf

Restart Apache.

sudo systemctl restart apache2

Step 9: Finish installation

Your ResourceSpace installation is now complete. You can finish configuring ResourceSpace through your web browser. Open your web browser and navigate to URL http://assets.example.com with the actual domain name pointed towards your IT Web Services VPS.

Need help?

Do you need help setting up this on your own service?
Please contact us and we’ll provide you the best possible quote!