INSTALL 343 Bytes
Newer Older
Stéphane Crozat's avatar
Stéphane Crozat committed
1
# PostgreSQL
2

3
4
5
## Add external data
add student.csv to data

Stéphane Crozat's avatar
Stéphane Crozat committed
6
7
## Create user and db
sudo su postgres
8
sql/db_init.sh password
Stéphane Crozat's avatar
Stéphane Crozat committed
9

Stephane Crozat's avatar
Stephane Crozat committed
10
11
12
## pgcrypto module
apt install postgresql-contrib

Stéphane Crozat's avatar
Stéphane Crozat committed
13
## Test
14
psql -h localhost -U apisub -d apisub
Stephane Crozat's avatar
Fix #9    
Stephane Crozat committed
15
16

# PHP
Stéphane Crozat's avatar
Stéphane Crozat committed
17
18
19
20

## Install

apt install php-pgsql
Stephane Crozat's avatar
Fix #9    
Stephane Crozat committed
21
apt install php-xml
Stéphane Crozat's avatar
Stéphane Crozat committed
22
23
24

## Connexion
cp lib/connexion-sample.php lib/connexion.php