sailorproject / sailor

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

Not able to make it work on Apache Win32 and Win64 #109

Closed r-nikhil closed 7 years ago

r-nikhil commented 8 years ago

When I visit "localhost/sailor" it just prints out what is inside the index.lua file. I added everything mentioned here in the apache conf file.

My conf file My error log

I can't seem to figure out where it's going wrong. I have Lua 5.1 installed. I was getting 500 Internal Server error in the beginning but after some refactoring of the conf file it changed to this

felipedaragon commented 8 years ago

Hello! I noticed from the log file it mentions "Apache/2.4.18 (Win64)", which the documentation doesn't covers yet. In this case you will need the Lua C libraries compiled for Win64 - the libraries included with the Lua For Windows installer, for example, are 32-bit.

felipedaragon commented 8 years ago

You should consider a parallel 32-bit installation of Apache/2.4.18 - just make sure the LuaPackageCPath points to the right path where Lua for Windows is installed and it should work as expected

r-nikhil commented 8 years ago

Okay. I downloaded the 32 bit version of Apache. I still get an 500 Internal Server error. Here is my error log

felipedaragon commented 8 years ago

Could Lua have been installed to "C:/Program Files (x86)/Lua/" instead of "C:/Program Files/Lua/" as indicated in the LuaPackage* directives?

r-nikhil commented 8 years ago

I was about to edit my previous comment with the updated error log. I noticed my mistake and changed it. This is the new log

felipedaragon commented 8 years ago

It looks like you need some missing dependencies in the 'C:/Program Files (x86)/Lua/5.1/lua/' directory, this one: https://github.com/sailorproject/remy/tree/master/src

r-nikhil commented 8 years ago

Yes. Noticed that in the logs. I was missing latclient also. Now, after installing both, when I point my browser at the Sailor sample app it just says "webpage not available" and "connection reset". Any pointers on that ?

felipedaragon commented 8 years ago

Can you post the new log? These dependencies were included with this repo in the past. Now they are installed through luarocks. This is why they are missing here - an updated version of the doc should mention this.

r-nikhil commented 8 years ago

Logs . Do you mind if I edit the docs to reflect the same ?. Anyone with a vanilla Lua installation on windows would be facing the same problem as me I think.

felipedaragon commented 8 years ago

Do you have https://github.com/sailorproject/lua_at_client/tree/master/lua?

r-nikhil commented 8 years ago

Yes. I installed it using luarocks. This one right ?

felipedaragon commented 8 years ago

Yes, 0.4-1 is the latest. Please feel free to update the docs. Your contribution is very welcome.

I'm not sure what is wrong now - the log is not indicating the issue... I think.

r-nikhil commented 8 years ago

I think I will just downgrade my Lua installation in my Linux system and poke around Sailor using that

felipedaragon commented 8 years ago

Can you post a more clean version of the log without the previous errors that were fixed?

r-nikhil commented 8 years ago

This is the final log. I am not able to find anything relevant from them

felipedaragon commented 8 years ago

I will try to reproduce this later today. Are you using Windows 10 64-bit?

r-nikhil commented 8 years ago

No. Windows 7. 64 bit

r-nikhil commented 8 years ago

I am going to try a clean install of lua/luarocks now. Hopefully that solves the problem

r-nikhil commented 8 years ago

I am going to try a clean install of lua/luarocks now. Hopefully that solves the problem

ilazaridis commented 8 years ago

@rnikhil275 I didn't check your error logs (too lazy, sorry :P) but I did check your conf file.

Under <Directory "c:/Apache24/htdocs">, you should change AllowOverride None to AllowOverride All. That is definitely an issue there (probably not the only one). You should restart apache after that.

r-nikhil commented 8 years ago

I am sorry I don't have access to a windows machine now. It's at my home and I am staying at college hostel since my exams are going on. I cannot provide any updates on the issue for another 5 days. :worried: