Install Resourcespace Digital Asset Management

If you are reading this then you know that ResourceSpace  www.resourcespace.org is and open source digital asset management there is a good install guide but as usual it skims over some areas.

The is being installed as usual in the Amazon AWS infrastructure. I am using the CentOS 6 base build from Centos.org marketplace in AWS.

Because this is a base build them you need to install some basic tools to get this working.

yum install gcc make wget unzip
cd /opt
mkdir software
cd software
yum install httpd php php-gd php-mysqli php-ftp mysql php-mbstring
cd /opt/software
wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.0.tar.gz
tar zfvx yasm-0.7.0.tar.gz
cd yasm-0.7.0
./configure
make
make install

You can check the yasm binary using the command

whereis yasm

This is will tell you where the yasm is installed

The chance is it will be installed in this directory /usr/local/bin/

Add the location to the Linux PATH

PATH=$PATH:/usr/local/bin/
export PATH
cd /opt/software
wget http://ffmpeg.org/releases/ffmpeg-0.11.1.tar.gz
tar -xvzf ffmpeg-0.11.1.tar.gz
cd ffmpeg-0.11.1
./configure
make
make install

cd /opt/software
wget http://downloads.ghostscript.com/public/ghostpdl-9.05.tar.gz
tar -xvzf ghostpdl-*.tar.gz
cd ghostpdl-9.05
./configure
make
make install


cd /opt/software
wget http://downloads.ghostscript.com/public/ghostscript-9.06.tar.gz
tar -xvzf ghostscript*.tar.gz
cd ghostscript*
./configure
make
make intsall


Now Install the ExifToolm it require some perl bits to compile the package

yum install perl perl-devel
cd /opt/software
wget http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/ExtUtils-MakeMaker-6.62.tar.gz
tar -xvzf ExtUtils-MakeMaker-6.62.tar.gz 
cd ExtUtils-MakeMaker-6.62
perl Makefile.PL 
make
make install

We can now install the Exif tool

cd /opt/software
wget http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-8.97.tar.gz
tar -xvzf Image-ExifTool-8.97.tar.gz
cd Image-ExifTool-8.97
perl Makefile.PL
make
make install

Now install Image Magick

yum install libtool gcc-c++

cd /opt/software
wget http://www.imagemagick.org/download/delegates/tiff-4.0.3.tar.gz
tar -xvzf tiff-*.tar.gz
cd tiff*
./configure
make
make install

Error received configure: error: zlib not installed

yum install zlib zlib-devel

cd /opt/software
wget http://www.imagemagick.org/download/delegates/libpng-1.5.14.tar.gz
tar -xvzf libpng-*.tar.gz
cd libpng*
./configure
make
make install
 
cd /opt/software
wget http://www.imagemagick.org/download/delegates/jpegsrc.v8b.tar.gz
tar -xvzf jpegsrc.v8b.tar.gz
cd jpeg-8b*
./configure
make
make install

cd /opt/software
wget http://www.imagemagick.org/download/delegates/ljpeg-6b.tar.gz
tar -xvzf ljpeg-6b.tar.gz
cd ljpeg*
./configure
make
make install
 

cd /opt/software
wget http://www.imagemagick.org/download/ImageMagick-6.8.2-10.tar.gz
tar -xvzf ImageMagick-*.tar.gz
cd ImageMagick*
./configure
make
make install

Install Antiword (optional)

cd /opt/software
wget http://www.winfield.demon.nl/linux/antiword-0.37.tar.gz
tar -xvzf antiword-0.37.tar.gz
cd antiword-0.37
make
make install
 
cd /opt/software
mv antiword-0.37 /opt/antiword
chown -R root:root /opt/antiword


cd /opt/software
wget http://www.ist-inc.com/downloads/motif_files/openmotif-2.1.32_IST.source.tar.gz
tar -xvzf openmotif-2.1.32_IST.source.tar.gz
cd motif

mkdir -p /opt/software/MOTIFBUILDDIR

lndir /opt/software/motif /opt/software/MOTIFBUILDDIR



./configure
make
make install
wget ftp://ftp.foolabs.com/pub/xpdf/freetype-2.4.6.tar.bz2
wget ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz

Now to get and install ResourceSpace

cd /opt/software
mkdir resource
cd resource
wget http://www.montala.com/downloads/ResourceSpace_5_0_4232.zip
unzip ResourceSpace_*.zip

cd /opt/software
mv resource /var/www/html
chown -R apache:apache  /var/www/html/resource
cd  /var/www/html/resource

We now need to create the database in mysql

mysql -u <mysql root password> -p -h < host of database>
create database resourcespace;
create user "resourcespace"@`localhost` identified by "password";
create user "resourcespace"@`%` identified by "password";
grant all on resourcespace.* to "resourcespace"@`localhost` with grant option;
grant all on resourcespace.* to "resourcespace"@`%` with grant option;


You need to change the php.ini settings

These are new

SecFilterEngine Off
SecFilterScanPOST Off

These need changing

memory_limit 200M
post_max_size 100M
upload_max_filesize 100M 
short_open_tag Off

Some file permissions need changing in the resource

cd /var/www/html/resource
chmod 777 filestore
chmod -R 777 include
  

Open a web browser and navigate to

http://x.x.x.x/resource

You will be prompted for the set-up page

Depending on your server and how it is setup you may get the following error

Write access to config directory:
(FAIL: ‘/include’ not writable. Only required during setup.)

Write access to storage directory:
(WARNING: /var/www/html/resource/pages/../filestore not writable
Override location in ‘Advanced Settings’.)

The issue is with selinux to check if this is the case issue the following command, this will disable it temporarily

echo 0 >/selinux/enforce

Restart the web server

service httpd restart

Try the web site setup again, you should get a confirmation page that all is well

To disable selinux you need to edit the following file

vi /etc/selinux/config

The following line should be changed from

SELINUX=enforcing  to  SELINUX=disabled

The server will need to be rebooted before this will fully take effect, but you will be able to continue with the installation

 

Now that these setting have been change you should get basic setting to add, mysql database etc…..

All the paths should be complete except for antiword and pdftotext

Next until you have the completed screen. You will be prompted to logon onto the system with admin/admin

 

Once you have proved that the system works

chmod -R 755 /var/www/html/resource/include

You now have a working system.

How you use this thing nor sure at the moment, but I will write a few more posts on how this is configured and how you actually use the system. One of the main areas is to get the filestore onto S3

, ,

  1. #1 by John Brookes on October 5, 2014 - 12:23 pm

    I have installed RS on AWS many times, but always used Ubuntu – and it’s a lot easier than this. For details, please see http://RSintheCloud.com

    Regards

    John Brookes

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

ifssoftware.wordpress.com/

Helping you achieve more

The Survival Guides's Blog

How to Survive IT and Holidays

WordPress.com

WordPress.com is the best place for your personal blog or business site.

%d bloggers like this: