Lighttpd с расширением Zip

340
Daniel Jørgensen

Я хотел оптимизировать свой проект, попробовав lighttpd вместо apache2 на Raspberry Pi, но заметил, что мой php-код, обрабатывающий zip-файлы, больше не работает, потому что Zip-модуль для PHP, похоже, не загружен или не установлен. По крайней мере, не тем, что я могу видеть phpinfo();.

Я пытался писать lighttpd-enable-mod zipв моей командной строке, но все, что я получаю от этого, это Ignoring unknown module: zip.

Как я могу включить или установить этот модуль?

0

1 ответ на вопрос

0
Daniel Jørgensen

I managed to figure it out, and it was simpler than i was afraid off

When i first installed lighttpd and PHP7 i just didnt include the module that i needed. So it was as simple as just running the following command

sudo apt-get install php7.0-zip which then set it all up, and it is now working

Похожие вопросы