- PHP 5.5+
- Composer
- MySQL / Postgres / SQL Server
- Apache (other webservers can be used)
In the install folder for TERESAH run
git clone https://github.com/DARIAH-ERIC/TERESAH
Create a empty database for TERESAH in MySQL / Postgres / SQL Server.
Make a copy of the configuration template .env.environment.php.template
.
For a production server the name shoud be .env.production.php
Fill in the values for your database connection, configuration if oauth is used, encryption key for user passwords etc.
Install composer on your server https://getcomposer.org/download/
TERESAH requires some third party libraries, all of these can be installed via composer.
To install run:
composer install
To create the database structure run php artisan migrate
. The tables will be created.
To fill the database with content from app/database/seeds/data/data.csv
run:
php artisan db:seed
The webserver should be configured to use TERESAH/public
as the webb root folder.
Example of configuration:
<VirtualHost teresah.myhost.org:80>
ServerAdmin [email protected]
DocumentRoot "/home/TERESAH/public/"
<Directory "/home/TERESAH/public/">
Order allow,deny
Allow from all
AllowOverride All
</Directory>
ServerName teresah.myhost.org
ErrorLog "logs/teresah.myhost.org-error.log"
CustomLog "logs/teresah.myhost.org-access.log" common
</VirtualHost>
If you wish to use the harvester, it needs an extra step for installation, please see the harvester page for more information.
To install on OSX, you will need to install php56 and mcrypt via homebrew, see this very good link. And also install "brew install php56-mcrypt".