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.
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
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
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
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
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.
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.
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.
For ResourceSpace to work, you will also need to install
Install the packages by typing:
sudo apt-get -y install antiword ffmpeg libimage-exiftool-perl imagemagick xpdf
Download the ResourceSpace zip archive using:
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
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
sudo systemctl restart apache2
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 Vultr VPS.