Archive for the ‘ ResourceSpace ’ Category

EWEA Photolibrary config file

EWEA ResourceSpace config.php file. This information is key for decrypting the photo database.

<?php
###############################
## ResourceSpace
## Local Configuration Script
###############################

# All custom settings should be entered in this file.
# Options may be copied from config.default.php and configured here.

# MySQL database settings
$mysql_server   = 'localhost';
$mysql_username = 'photolib_user';
$mysql_password = '5A5wdpqG';
$mysql_db       = 'photolibrary_test';

$mysql_bin_path = '/usr/bin';

# Base URL of the installation
$baseurl = 'http://intranet/photolibrary';

# Email settings
$email_from   = '[email protected]';
$email_notify = '[email protected]';

$spider_password  = 'uqe7ySEWEvan';
$scramble_key     = 'uXeXADaqYZat';

$api_scramble_key = 'aBeGA2yBA4ed';

# Paths
$imagemagick_path      = '/usr/bin';
$ghostscript_path      = '/usr/bin';
$ftp_server            = 'my.ftp.server';
$ftp_username          = 'my_username';
$ftp_password          = 'my_password';
$ftp_defaultfolder     = 'temp/';
$thumbs_display_fields = array(8,3);
$list_display_fields   = array(8,3,12);
$sort_fields           = array(12);

Installing ResourceSpace (aka The Photolibrary)

  1. Create the directory in which the application will reside
    cd /var/www/html/sites/
    mkdir photolibrary

  2. Create the credentials file and store it
    #cat > /root/files/photolibrarycredentials

    username=Photolibrary
    password=PhotoLibrary67
    domain=WIND

  3. Download ResourceSpace from http://www.resourcespace.org/download.php
    cd /root/downloads/resourcespace/
    wget http://www.resourcespace.org/downloads/ResourceSpace_XXXXXXXX.zip

  4. Unzip ResourceSpace and move all the files to the designated directory
    unzip -q -d resourcespace ResourceSpace_XXXXXXXX.zip
    cp -a resourcespace/* /var/www/html/sites/photolibrary/

  5. Change ownership of photolibrary directory and files
    chown -R apache:apache /var/www/html/sites/photolibrary

  6. Create the file mount (mount the Windows Share as a Linux subdirectory)
    mount -t cifs //srv-01/PhotoLibrary -o credentials=/root/files/photolibrary/credentials,uid=48,gid=48,rw /var/www/html/sites/photolibrary/filestore
    Updated 14 Dec 2015
    mount -t cifs //EWEANAS01/PhotoLibrary -o credentials=/root/files/photolibrary/credentials,uid=48,gid=48,rw /var/www/html/sites/photolibrary/filestore

    Add this also to /etc/rc.local so it mounts the directory automatically on reboot.

  7. Create a database in PhpMyAdmin
    photolibrary

  8. Create a user account in PhpMyAdmin and give permissions to the photolibrary database
    Username: photolib_user
    Password: 5A5wdpqG

  9. Open a browser and navigate to http://photolibrary/
  10. Enter the database details
  11. Now log in to the photo library from
    http://photolibrary/login.php
    Default username/password = admin/admin

  12. Click on “Admin User” (top right corner) to change admin password
  13. Click on “Team Centre” then “Manage Users” to add new users.
  14. Click on “Upload” and try uploading a photo to see if it works.

That’s all there is to it!

More information is here: wiki.resourcespace.org