# Installing wicopa ```bash git clone https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa.git apt-get install -y apache2 mariadb-server php7.0 phpmyadmin libapache2-mod-php7.0 pv 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 wget http://web.mbb.univ-montp2.fr/download/wicopa.sql.gz pv wicopa.sql.gz | gunzip | mysql -u wicopauser -p wicopa vim conf/Conf.php ``` # 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 # you might also check if "use wicopa;" is present in the beginning of the dump file # grep -i 'use `wicopa`' wicopa.sql # otherwise, you would have to add it. mkdir -p /data/mysql/wicopa docker-compose up --build # you can access to it at http://127.0.0.1:8000 ```