ResourceSpace on OMV.


September 4, 2017 by aubreykloppers

NOTE: See how to upgrade at the end of this writing…

This one had me a bit stumped due to the fact that there was an error in the ResourceSpace 8.2 code (now fixed after I reported it) that did not allow for new password or username requests.

To successfully run ResourceSpace (RS) on OpenMediaVault (OMV), there are a couple of things you need to do.  I take it for granted you know how to install OMV and it’s extras, so those steps are just being touched on.  The rest is what I concentrate on.  Well, here we go:

Basic Installation Steps:

  1. Change the OMV default port to 8080.
  2. Install OMV-Extras and activate.
  3. Update the system
  4. Install packages.
  5. Install and activate MYSQL package.
  6. Install NGINX package.

Install steps 2,3,4: (Steps 1,5,6 from OMV interface.)

dpkg -i openmediavault-omvextrasorg_latest_all3.deb
apt-get update
apt-get install git-svn php5-gd libimage-exiftool-perl imagemagick libav-tools ghostscript antiword poppler-utils unoconv unzip

MYSQL setup:

mysql> use mysql;
mysql> update user set password=PASSWORD("password") where User='root';
mysql> GRANT ALL PRIVILEGES on *.* to 'root'@'localhost' IDENTIFIED BY 'password';
mysql> flush privileges;
mysql> create database resourcespace;

Now you have a system with mysql password as “password”.

ADD secondary disk to OMV.

  1. Format and initialize.
  2. Create fileserver directory called “resourcespace”.

Setup NGINX – see

  1. Create POOL (user/group = www)
  2. Create server and mount on /srv/{your mounted disk}/resourcespace
  3. Edit /etc/nginx/nginx.conf and add after http{:
  client_max_body_size 1G;

Install ResourceSpace using GIT:

cd /var/www/
ln -s /srv/{your mounted disk}/resourcespace resourcespace
cd resourcespace
chmod 777 .
git svn clone ./
chmod 777 include
chmod 777 fileserver

Fix PHPFPM /etc/php5/fpm/php.ini:

 php_value[memory_limit] = 200M
 php_value[post_max_size] = 100M
 php_value[upload_max_filesize] = 100M


The following values will help you to preview your site with ease.

$mysql_server = 'localhost';
$mysql_server_port = 3306;
$mysql_username = 'root';
$mysql_password = 'password';
$mysql_db = 'resourcespace';

$email_from="resourcespace@<domain>"; # Where system e-mails appear to come from
$email_notify="<user>@<domain>"; # Where resource/research/user requests are sent

$ffmpeg_preview_seconds=120; # how many seconds to preview
$ffmpeg_preview_options = '-f mp4 -ar 22050 -b 650k -ab 32k -ac 1 -strict experimental';


Make sure your email works from OMV.  Set your proxy if you need to.

If you get “502 Bad Gateway” you could try and recreate the fpm files:

  1. omv-mkconf php5fpm
  2. service php5-fpm restart


To upgrade from say 8.4 to 8.6 is actually very easy:

  1. “cd /var/www/resourcespace”
  2. “mv .git git-8.4”
  3. “git svn clone ./”

Happy upgrading!

One thought on “ResourceSpace on OMV.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

counter for wordpress
%d bloggers like this: