wikimedia-france / Lingua-Libre

LinguaLibre – Massive Open Audio Recording system
http://v1.lingualibre.fr
GNU General Public License v3.0
14 stars 5 forks source link

php zip extension not installed #74

Closed kamomil closed 6 years ago

kamomil commented 6 years ago

Hi, I just installed the site here and started to translate it.

Then when clicked "download" (Télécharger) to download my recordings, I got a server error:

Fatal error: Class 'ZipArchive' not found in /code/src/AppBundle/Controller/SoundsController.php on line 209

I was able to fix it by replacing the line

RUN apt-get update && docker-php-ext-install -j$(nproc) pdo pdo_mysql

with the line

RUN apt-get update && apt-get install -y zlib1g-dev && docker-php-ext-install -j$(nproc) pdo pdo_mysql zip

In the file docker/app//Dockerfile

pushed it to my fork

hugolpz commented 6 years ago

Feel free to push to this repository. I noticed the devs of your current edits.