Ignore my previous note, I forgot to add in where to use the PECL command to install phplua.Installation on Ubuntu 14.04"*.*" means version numberPackages to install (sudo apt-get install):Install php5Install php-pearInstall php5-devInstall lua*.*Install liblua*.*Create soft link of /usr/include/lua TO /usr/include/lua*.*:sudo ln -s /usr/include/lua*.*/ /usr/include/luaFind liblua*.*.so and liblua*.*.a files in /usr/lib.If they don't exist, they could be in /usr/lib/x86_64-linux-gnu or /usr/lib/i386-linux-gnu depending on OS.Copy them from that directory into /usr/lib as liblua.so and liblua.a (WITHOUT VERSION NUMBER).Example:sudo cp /usr/lib/x86_64-linux-gnu/liblua5.2.a /usr/lib/liblua.aNow execute the following command (1.1.0 is the version at the time of writing this):sudo pecl install lua-1.1.0Add extension=lua.so to php.ini file (could be /etc/php5/(cli/apache)/php.ini)Hope this helps.