Home  >  Article  >  Backend Development  >  Using lua script in phpStudy_PHP tutorial

Using lua script in phpStudy_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:18:381209browse

phpStudy integrates the comprehensive configuration of multiple web services, such as classic apache+mysql, nginx+mysql, etc. When using apache+mysql, you hope to use lua scripts, so you use the configuration options to enable the lua module, as shown below


But after such configuration, when restarting the apache service, the lua script cannot be used normally. The lua test code is as follows

require "apache2"

function handle(r)
  r.content_type = "text/html"
  r:write "Hello World from <strong>mod_lua</strong>."
  return apache2.OK
end
But when the browser is opened, this result is obtained, as shown in the picture below

Using lua script in phpStudy_PHP tutorialvcWxvsO709Cxu9a00NCjrLb4yse1sbPJwcvG1c2otcTOxLG+tsHIoc/Uyr61vcHL5K/AwMb31tCho8TH1eLKx8qyw7TOyszixNijvzwvcD4KPHA+vq25/bLp1dKjrL+0 tb3By9K7xqrOxNXC1tDLtbW9YXBhY2hl1tDG9NPDbHVhxKO/6bXEzsTVwqGjzsTVwtbQzOG1 vdTaYXBhY2hlMi400tTJz7XEsOaxvtbQ0tG+rcTa1sPBy2x1YbXExKO/6aOsztLDx9a70OjSq r340NDSu9CpxeTWw77Nv8nS1MHLoaPIu7rzsunBy8/CcGhwU3R1ZHmwstewyrHL+bT4tcRhcGFjaGXKxzIuNLDmsb61xKOsy/nS1MTa1sPBy2x1YcSjv+mho8/Cw+bKx8Xk1sOyvdbooaM8L3 A+CjxwPjEu1NpwaHBTdHVkeVxBcGFjaGVcY29uZs/C1dK1vWh0dHBkLmNvbmbF5NbDtbWjrL2rTG9hZE1vZHVsZSBsdWFfbW9kdWxlIG1vZHVsZXMvbW9kX2x1YS5zb8eww+a1xCO 6xciltfSjqCO6xcrH16LKzbHqvMejqaGjPC9wPgo8cD4yLtTaxeTWw7XE1+6688PmzO3Jz2 x1YcSjv+m0psDtz+5BZGRYW5kbGVyIGx1YS1zY3JpcHQgLmx1YaGjPC9wPgo8cD4zLrGjt ObF5NbDPC9wPgo8cD40LtTacGhwc3R1ZHnW0NbYxvS3/ s7xoaM8L3A+CjxwPjUu1Nm0zrTyv6poZWxsby5sdWGy4srU0rOho9TL0NDV/bOjo6y94bn7yOfPws28oaM8L3A+CjxwPjxpbWcgc3JjPQ=="http://www.Bkjia.com/uploadfile/Collfiles/201312 09/20131209104641156.jpg" alt="">

At this point, the configuration of phpstudy to use the lua module is completed.




www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/621634.htmlTechArticlephpStudy integrates the comprehensive configuration of multiple web services, such as classic apachemysql, nginxmysql, etc. When using apachemysql, I hope to be able to use lua scripts, so I use the configuration option to enable...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn