INSTALL 292 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 10

## Test
11
psql -h localhost -U apisub -d apisub
Stephane Crozat's avatar
Stephane Crozat committed
12 13

# PHP
Stéphane Crozat's avatar
Stéphane Crozat committed
14 15 16 17

## Install

apt install php-pgsql
Stephane Crozat's avatar
Stephane Crozat committed
18
apt install php-xml
Stéphane Crozat's avatar
Stéphane Crozat committed
19 20 21

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