Я установил Lua через:
apt-get install lua5.3 lua5.3-dev
Затем сделал
pecl install lua
, который дал мне эту ошибку: Please reinstall the lua distribution - lua.h should be in <lua-dir>/include/
Please reinstall the lua distribution - lua.h should be in <lua-dir>/include/
Но я не знаю, где это <lua-dir> должно быть. Следуя инструкциям в этом вопросе: lua php не удалось установить расширение через pecl не помогло
<lua-dir>
РЕШЕНИЕ:
pecl download lua cd lua-2.0.7 phpize ./configure --with-lua-version=5.3 make cp modules/lua.so /usr/lib/php/20151012/lua.so
Добавить php .ini:
extension=lua.so