Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit e3fd2f07 authored by Mathieu Loiseau's avatar Mathieu Loiseau
Browse files

Update INSTALL.md

parent eb312d49
......@@ -15,7 +15,7 @@ Installation
* Download from GitHub and unzip
* Create a "./enregistrements" folder (make sure your Apache server has writing rights in this directory)
* Make sure apache also has writing rights in "./profil" directory
* Edit ./sys/config.sample.php, enter identification to your MySQL or MariaDB server and save the file as ./sys/config.php
* Edit ./sys/config.sample.php, enter [identification to your MySQL or MariaDB server](#creating-a-user-and-db) and save the file as ./sys/config.php
* If you want the recordings stored in mp3 format on the server, libavtools >=9 must be installed and the $conversion variable initialization adjusted in ./sys/config
* If you want some cards in various languages you can uncomment the "include_once('import.php');" at the end of initializeDB.php
* Run initializeDB.php
......@@ -28,7 +28,17 @@ Administration
* export (GET variable export is set e.g. http://localhost/adminCards.php?export=true) : generate code that can be used to import the said card in another system. NB : the authorship in the next instance will be lost and the cards associated to the admin account
* user generated cards only (GET variable ugc is set e.g. http://localhost/adminCards.php?ugc=true) : only export (or admin, or both) the cards that were created by users.
import
Import
-------
import can automatically performed on install.
It imports the cards we provided and cards you might have exported (see administration). The parameter in the store method in all import script checks whether two cards can concern the same words. It is set to true by default, so that the system checks whether the word exists and refuses same word cards. If you want those cards, you should find occurences of “store(true)” and replace them by “store(false)” before running the import script for the 1st time. (“true” might be a word in your cards)
Creating a user and db
----------------------
If you don't have an gui you can use the following code (make sure to change the password)
```SQL
CREATE USER 'GoW'@'localhost' IDENTIFIED BY 'password';
GRANT USAGE ON *.* TO 'GoW'@'localhost' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;
CREATE DATABASE IF NOT EXISTS `GoW` ;
GRANT ALL PRIVILEGES ON `GoW`.* TO 'GoW'@'localhost' ;
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment