Installing on Ubuntu Linux

Be sure to follow the onscreen instructions during installation, accepting default or relevant options including any additional prompts regarding MySQL and Postfix configuration which arise during the installation process (Use Tab, Enter and Arrow Keys for Postfix Controls). The MySQL password is important later on in the setup process and also for future Root access so take care not to lose or forget it.

Install programs and dependencies

Run the following from the command line

sudo apt-get update
sudo apt-get install nano imagemagick apache2 mysql-server subversion inkscape
sudo apt-get install ghostscript antiword postfix libimage-exiftool-perl cron wget

Ubuntu 18.04 and above:

sudo apt-get update
sudo apt-get install php php-dev php-gd php-mysql php-mbstring php-zip php-intl php-curl libapache2-mod-php ffmpeg poppler-utils

Configure PHP

Configuring the php.ini file

Create database

Log into MySQL as the root user:

mysql -u root -p 

Then create the database and database users.

Checkout ResourceSpace

cd /var/www/html
mkdir resourcespace
cd resourcespace
svn co https://svn.resourcespace.com/svn/rs/releases/9.6 .

See SVN checkout for more information.

mkdir filestore
sudo chmod 777 filestore
sudo chmod -R 777 include

Finish installation via web browser

Access the server address (e.g. localhost) via a web browser to resume the setup.

Review installation overview to help fix any warnings/errors on the setup page.

Use the resourcespace_rw user as the "MySQL username" and resourcespace_r user as the "MySQL read-only username".

Set up the cron job for relevance matching and periodic emails

To set up the cron job:

sudo nano /etc/cron.daily/resourcespace

Add the lines:

#!/bin/sh
wget -q -r http://localhost/pages/tools/cron_copy_hitcount.php

Ctrl+O, Ctrl+X to save and quit.

Set the file and folder permissions

Change the permission for the include folder to 750

sudo chmod -R 750 include/

Set the user group for all files to be www-data

cd ..
sudo chgrp -R www-data resourcespace/