Lua is an embeddable scripting language. If you are trying to embed it in PHP follow this instructions that may help you:
At this point you are almost done, BUT please edit the file Makefile and change the line:
by:
Then is time to finish cooking:
Almost done, do a test: