Project

General

Profile

ResourceSpace Installation » History » Version 2

Jessie Lee, 04/18/2016 10:31 AM

1 1 Jessie Lee
{{lastupdated_at}} by {{lastupdated_by}}
2
3
{{>toc}}
4
5
h1. ResourceSpace Installation
6
7
h2. Initial setup
8
9
* The following packages are needed for installation: apache2 mysql-server php5 php5-dev php5-gd php5-mysql imagemagick ghostscript antiword xpdf libav-tools postfix libimage-exiftool-perl cron wget
10 2 Jessie Lee
* ResourceSpace can be either installed via  SVN or via tar.gz. I did it via the point release tar.gz file
11
* unpack in /var/www/resourcespace and chown -R www-data:www-data /var/www/resourcespace
12
* if file storage will be in /var/www/resourcespace create filestore directory if it will be elsewhere create a symlink to the filestore directory
13 1 Jessie Lee
14 2 Jessie Lee
h2. Database (mysql)
15
16
* log into mysql as root user
17
* create database resourcespace; 
18
* create user resourcespace 
19
<pre>CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
20
CREATE DATABASE IF NOT EXISTS resourcespace;
21
GRANT ALL PRIVILEGES ON resourcespace.* TO 'username'@'localhost' IDENTIFIED BY 'password';</pre>
22
23
h2. Apache config
24
25
* No site.conf file is included so we will have to make our own. 
26
<pre><IfModule mod_ssl.c>
27
<VirtualHost *:443>
28
        ServerName cloud.example.org
29
30
        ServerAdmin webmaster@localhost
31
        DocumentRoot /var/www/resourcespace
32
        <Directory /var/www/resourcespace>
33
                AllowOverride All
34
                Options Indexes FollowSymLinks MultiViews
35
                Order allow,deny
36
                allow from all
37
        </Directory>
38
    <Directory /var/www/resourcespace/filestore>
39
    Options -Indexes
40
    AllowOverride All
41
    Order allow,deny
42
    allow from all
43
    </Directory>
44
45
        ErrorLog ${APACHE_LOG_DIR}/resourcespace.error.log
46
        CustomLog ${APACHE_LOG_DIR}/resourcespace.access.log combined
47
48
SSLCertificateFile /path/to/cert.pem
49
SSLCertificateKeyFile /path/to/key.key
50
Include /etc/letsencrypt/options-ssl-apache.conf
51
Header always add Strict-Transport-Security "max-age=15768000"
52
</VirtualHost>
53
</pre>
54
* We should also create .htaccess file in the filestore directory as an added measure
55
<pre><ifModule mod_authz_core.c>
56
Require all denied
57
</ifModule>
58
59
# line below if for Apache 2.2
60
<ifModule !mod_authz_core.c>
61
deny from all
62
Satisfy All
63
</ifModule>
64
65
# section for Apache 2.2 and 2.4
66
IndexIgnore *
67
</pre>
Go to top