2016-07-24 45 views
1

我試圖在我的Apache服務器上運行一個簡單的lua腳本(version 2.4.23)。帶有lua腳本的apache2.4:LuaMapHandler導致配置語法錯誤

我跟着這些instructions並添加下一行我apache2.conf

LuaMapHandler//path/to/lua/script.lua my_lua_handler 

重新啓動我的服務器時,我得到這樣的輸出:據

AH00526: Syntax error on line 146 of /etc/apache2/apache2.conf: 
Invalid command 'LuaMapHandler', perhaps misspelled or defined by included in the server configuration 

,因爲我讀的是mod_lua已經可以從version 2.3 我錯過了什麼?

回答

0

你可能需要load模塊:

LoadModule lua_module modules/mod_lua.so 

和/或使用啓用

a2enmod lua