INSTALL.md 1.13 KB
Newer Older
remy's avatar
remy committed
1
2
3
# Installing wicopa

```bash
remy's avatar
remy committed
4
5
git clone https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa.git

remy's avatar
remy committed
6
apt-get install -y apache2 mariadb-server php7.0 phpmyadmin libapache2-mod-php7.0 pv
remy's avatar
remy committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

a2enmod php7.0

cd /var/www/html/wicopa

cp conf/Conf.php.sample conf/Conf.php

chown -R www-data /var/www/html/wicopa
chmod -R o-r /var/www/html/wicopa

service apache2 restart
```

# Creating username and database

```bash
echo "CREATE DATABASE wicopa;" | mysql -u username -p

echo 'GRANT ALL PRIVILEGES ON wicopa.* TO "wicopauser"@"localhost";'  |mysql -u root -p

remy's avatar
remy committed
27
28
29
wget http://web.mbb.univ-montp2.fr/download/wicopa.sql.gz

pv wicopa.sql.gz | gunzip | mysql -u wicopauser -p wicopa
remy's avatar
remy committed
30
31
32
33

vim conf/Conf.php
```

remy's avatar
remy committed
34
35
36
37
38
39
40
41
# Using Docker

```bash
git clone https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa.git
# you need to have wicopa.sql here
wget http://web.mbb.univ-montp2.fr/download/wicopa.sql.gz
gunzip -d wicopa.sql.gz

remy's avatar
remy committed
42
# you might also check if "use wicopa;" is present in the beginning of the dump file
remy's avatar
remy committed
43
# grep -i 'use `wicopa`' wicopa.sql
remy's avatar
remy committed
44
45
# otherwise, you would have to add it.

remy's avatar
remy committed
46
47
48
49
50
mkdir -p /data/mysql/wicopa

docker-compose up --build
# you can access to it at http://127.0.0.1:8000
```
remy's avatar
remy committed
51