sailorproject / sailor

A Lua MVC Web Framework.
MIT License
921 stars 125 forks source link

install instructions for Arch doesn't seem to work #149

Open MaxiMakes opened 7 years ago

MaxiMakes commented 7 years ago

I'm running Archlinux in Virtual Box. I tried to install sailor with this guide INSTALL_LINUX_ARCH.md after I have uncommented this line: LoadModule lua_module modules/mod_lua.so

httpd breaks with: httpd: Syntax error on line 119 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_lua.so into server: /etc/httpd/modules/mod_lua.so: undefined symbol: luaL_register

#: httpd -v
Server version: Apache/2.4.25 (Unix)
Server built:   Dec 20 2016 13:02:22

I also tried lighttpd and didn't get it to work :(

Etiene commented 7 years ago

Sorry, I need to update these docs! I would recommend trying it with either xavante or nginx though, since they are the best supported servers. Xavante comes installed with sailor, so if you tried creating an app, could you try cd'ing to it and lua start-server.lua ?

for nginx, try following the instructions to get openresty(nginx+lua) here https://openresty.org/en/installation.html then the rest should be similar to the procedure we have for osx https://github.com/sailorproject/sailor/blob/master/docs/INSTALL_MAC.md#alternative-setup-using-nginx-and-openresty

MaxiMakes commented 7 years ago

Thanks, lua5.2 start-server.lua works, but I will test some other Distributions and installation instructions in the next few days. I think it's important that newbies can follow the installation instructions and have a working server.