Installing on Ubuntu Linux

From ResourceSpace Documentation Wiki

Jump to: navigation, search

Example installation on Ubuntu using Subversion

These instructions have been tested on Debian Linux also.

From the command line :-

(when installing packages, press return to use all the default settings when prompted)

sudo apt-get update
sudo apt-get install apache2 mysql-server php5 php5-dev php5-gd php5-mysql subversion
sudo apt-get install vim nano graphicsmagick graphicsmagick-imagemagick-compat
sudo apt-get install ghostscript antiword xpdf ffmpeg postfix libimage-exiftool-perl cron wget 
cd /var/www
sudo svn co http://svn.montala.net/svn/resourcespace .
cd resourcespace
sudo mkdir filestore
sudo chmod 777 filestore 

You will have entered a mysql password during installation.

login to mysql:

mysql -u root -p 
create database resourcespace;
quit
sudo chmod -R 777 include

...then fire up a web browser and point it at the server to resume the setup.

To set up the cron job:

sudo nano /etc/cron.daily/resourcespace.sh

Add the lines:

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

Ctrl+O, Ctrl+X to save and quit, then do:

sudo chmod 777 /etc/cron.daily/resourcespace.sh

Enable Single File Upload Progress Bar

optionally, you can add the uploadprogress extension in order to enable a single file upload progress bar. See http://www.ultramegatech.com/blog/2010/10/create-an-upload-progress-bar-with-php-and-jquery for more uploadprogress installation instructions.

This has only been tested on Ubuntu, and works only with Firefox and IE browsers. There were problems with Chrome, Safari, and Opera, and those have been disabled. Chrome includes an upload progress indicator by default, so Safari and Opera are the most problematic browsers here.

sudo pecl install uploadprogress

You will have to add the following line to php.ini:

extension=uploadprogress.so

Then restart apache:

sudo /etc/init.d/apache2 restart
Personal tools