-
Notifications
You must be signed in to change notification settings - Fork 175
Installing Loris in Brief
This page details steps for Ubuntu 16.04, for Loris 17.*
The following instructions must be executed in sequence. If you get an error at any of the steps, troubleshoot them before continuing.
When you're done, don't forget to continue following the rest of the Setup Guide including imaging setup.
- You are on Ubuntu 16.04;
lsb_release -a
should say Ubuntu 16.04 - You'll be ssh'ing into a remote machine. If you are not, just ignore the steps that tell you to
ssh
-
ssh
into your remote machine as a user in thesudo
group (likeroot
) sudo apt-get update
sudo apt-get install -y mysql-server mysql-client
sudo apt-get install -y zip curl wget python-software-properties software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y apache2
sudo apt-get install -y php7.0 php7.0-mysql php7.0-xml php7.0-json php7.0-mbstring php7.0-gd
sudo apt-get install -y composer
sudo apt-get install -y libapache2-mod-php7.0
sudo a2enmod php7.0
sudo service apache2 restart
-
ssh
into your remote machine as a user in thesudo
group (likeroot
) sudo useradd -U -m -G sudo -s /bin/bash lorisadmin
sudo passwd lorisadmin
su - lorisadmin
-
whoami
, you should seelorisadmin
Make sure you're ssh'd as lorisadmin
cd /var/www
-
Get the latest release URL and then (e.g.)
sudo wget https://github.com/aces/Loris/archive/v17.0.6.zip -O release.zip
sudo unzip release.zip
-
ls
, you should see a directory namedLoris-_XX-X-X_
sudo mv Loris* loris
-
ls
, you should see aloris
directory sudo rm release.zip
sudo chown lorisadmin.lorisadmin loris
Make sure you're ssh'd as lorisadmin
cd /var/www/loris/tools
sudo ./install.sh
- Fill in your
<project-name>
(You get to choose what it is) - When
install.sh
asks to configure apache2 for you, accept - Key in
lorisadmin
's password - Wait
- Installation complete
Assuming you let the install script configure apache2 for you but it didn't work out for some reason.
sudo a2enmod rewrite
sudo a2ensite <project-name>
sudo service apache2 restart
- Figure out your
<loris-url>
(It's probably the IP address of your remote machine) - Open your internet browser
- Navigate to
<loris-url>/installdb.php
- Fill in
<mysql-host-name>
; if the MySQL server is on the same machine that is hosting Loris, it will belocalhost
- Fill in
<mysql-admin-username>
; it is easiest to just useroot
- Fill in
<mysql-admin-password>
- Fill in
<mysql-database>
; this database must not exist yet as the installer will try to create it - Submit
- Fill in
<mysql-user-username>
,<mysql-user-password>
; they can be anything you want, really - Fill in
<loris-admin-username>
,<loris-admin-passwrd>
; they can be anything you want, really - Submit
- Open your internet browser
- Navigate to
<loris-url>
- Fill in
<loris-admin-username>
- Fill in
<loris-admin-password>
- Log in
- Maybe add your username and password to a password manager?
You now have the basic LORIS features installed and are ready to set up configurations, Behavioural instruments and Imaging support.
Check the following:
-
That
/var/www/loris/smarty/templates_c
exists; if it doesn't,cd /var/www/loris/smarty
sudo mkdir templates_c
sudo chmod 777 templates_c
-
That
/var/www/loris/smarty/templates_c
is owned bywww-data
(Runls -al /var/www/loris/smarty
to check) or has777
permissions (Not ideal butinstall.sh
does something similar, Runsudo chmod 777 /var/www/loris/smarty/templates_c
)