Lua scripting language

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
Eni
-


Joined: 15 Aug 2005
Posts: 5

PostPosted: Mon Aug 15, 2005 11:36 pm    Post subject: Lua scripting language Reply with quote

Hi, I just downloaded and installed AWS, and I'd choose it over Apache any day any time !! (^^)V !! It's simple, small and clean, very nice indeed (^^).

With Apache I could use mod_lua.so, but with AWS there is no Lua scripting feature, so I was just wondering whether anyone would be interested in or know how to create an application/library for use as cgi/isapi in AWS??

The easiest method (and the only method I can think of) would be an application that is dynamically linked to luaxx.dll and that this app would be some kind of server, or what I should call it, a bridge between AWS and Lua.

Just adding c:\lua\bin\lua.exe as a scripting interpreter won't work (what a shame!) so someone would have to make that app/lib to link to in AWS.

Unfortunately (and I really mean UNFORTUNATELY), I'm not a programmer, so I have no idea how to do this (T-T), I'm a designer, my job (and what I'm damn good at) is design, making and developing new ideas and concepts (^^) so no luck there. IF I knew programming, I wouldn't waste a second, I'd create the app/lib immediately!! Lua is small (lua5.0 ~200kb, lua5.1-work6 ~800kb), clean, fast, simple, secure, efficient, simply one of the best scripting languages ever (^.^) it doesn't have fancy stuff like php, ruby and other languages, but it's still incredible good (^^)!

LESS IS MORE!!!!
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Mon Aug 15, 2005 11:38 pm    Post subject: Reply with quote

I dont think Abyss supports this language yet but if you get in touch with Aprelium and let them know about it I'm sure they can make this available as a language in the next release.

Abyss currently works with the favourite languages, PHP, AHTML, Python and Perl but a few others have been reported to work.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Eni
-


Joined: 15 Aug 2005
Posts: 5

PostPosted: Mon Aug 15, 2005 11:47 pm    Post subject: Reply with quote

The Inquisitor wrote:
I dont think Abyss supports this language yet but if you get in touch with Aprelium and let them know about it I'm sure they can make this available as a language in the next release.

Abyss currently works with the favourite languages, PHP, AHTML, Python and Perl but a few others have been reported to work.


Great! That would be wonderful (^^)

There is an application called CGILua, which works in Apache, IIS, Xavant, mayby a few others too, but I never got it to work in AWS. I used the old 3.2 version, since I don't know how to get the 5.0 binaries, but there might just be a chance that CGILua 5.0 could work.

AT the moment I only get the error: "No CGILua script specified in url.", but the CGI is working, since I'm getting an error message! However, 3.2 is not recommended, very old, it uses Lua 4...something, maybe even older. Latest stable Lua is 5.0.2, and 5.1-work6 is not bad either, and 5.xx is a lot better than 4.xx and older. I've been trying to copy the CGILua files from Xavante, but I can't really get it to work. If I manage to get it to work i'll ofcourse post here immediately (^^)V


Last edited by Eni on Mon Aug 15, 2005 11:52 pm; edited 1 time in total
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Mon Aug 15, 2005 11:51 pm    Post subject: Reply with quote

Yes please do post here if you get it working. Contact aprelium at support@aprelium.com and let them know and see if they can do anything about it.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Eni
-


Joined: 15 Aug 2005
Posts: 5

PostPosted: Tue Aug 16, 2005 12:26 am    Post subject: Reply with quote

CGILua is definately no good, the way it works and handles LUa is crap (T T), mod_lua.so for Apache was a lot better, it simply sent any Lua code straight to the Lua interpreter, and that's all. You just installed mod_lua.so and you could then start to write LHTML documents where you embed Lua with <?lua ?> or use pure Lua documents where the entire document is treated as Lua. The best thing was that it could even run compiled Lua bytecode. It contained no configurations, no nothing, just raw support for Lua.

CGILua is, well...horrible, there's no other word for it! So whatever you do, stay away from CGILua, it's no good (X-X). The only hope now is a simple CGI library. If either anyone at Aprelium or anyone here in the forum is interested in trying, let me know, I'd love to design the library, how it's suppsoed to work, I do have a few ideas (^^).
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Tue Aug 16, 2005 1:41 am    Post subject: Reply with quote

Lua works just fine on Abyss Web Server , if anyone can get something to work
on Abyss Web Server , its either me or Aprelium lol. Enjoy having your Lua. :-)

01. Download the Win32 Binary from.
http://sourceforge.net/project/showfiles.php?group_id=73737

02. Install Lua into C:\Lua

03. Open your Abyss Web Server console and click on "Scripting Parameters"
and click Add in the Interpreters table and follow my settings , its simple. :-)

Interpreter: C:\Lua\lua5.exe [The 5 is the version #]

Type: Standard [I believe this is correct.]

Associated Extensions: lua

Now exit "Scripting Parameters" and click Index Files , type index.lua and
restart Abyss Web Server , now we will create a simple lua "Hello, World!"

Lua "Hello, World!" Example [hello.lua]
Code:

# Hello World in lua
print "Content-type: text/html\n\n";
print "Hello world";


Note: This is not CGILua , I used the Windows version "Lua Cheia" in this
small tutorial , you should do just fine with this one , hope this helped. :-)

Lua Cheia: http://luacheia.lua-users.org/

Sincerely , TRUSTpunk


Last edited by TRUSTAbyss on Tue Aug 16, 2005 2:09 am; edited 1 time in total
Back to top View user's profile Send private message Visit poster's website
Eni
-


Joined: 15 Aug 2005
Posts: 5

PostPosted: Tue Aug 16, 2005 2:07 am    Post subject: Reply with quote

heeeeeeeeeeeeeeeey, even the standard lua binaries worked, the problem was that I didn't write:

print "Content-type: text/html\n\n";

it that something exclusively AWS, haven't had to write anything like that before. Lol, one simple string (^^)
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Tue Aug 16, 2005 2:11 am    Post subject: Reply with quote

No , scripting languages that are similar to Perl don't automaticly add the
Content header to your scripts like PHP does so you have to add it , ok ?

Sincerely , TRUSTpunk
Back to top View user's profile Send private message Visit poster's website
Eni
-


Joined: 15 Aug 2005
Posts: 5

PostPosted: Tue Aug 16, 2005 2:12 am    Post subject: Reply with quote

aah, k, thanks for all the help (^^)V !!
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Tue Aug 16, 2005 2:13 am    Post subject: Reply with quote

No problem , I help everyone on this forum.
Back to top View user's profile Send private message Visit poster's website
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Tue Aug 16, 2005 3:42 am    Post subject: Reply with quote

TRUSTpunk wrote:
Lua works just fine on Abyss Web Server , if anyone can get something to work
on Abyss Web Server , its either me or Aprelium lol.

TRUSTpunk wrote:
No problem , I help everyone on this forum.


Someone a lil' cocky?
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Tue Aug 16, 2005 4:23 am    Post subject: Reply with quote

Don't take it personal but I've known Abyss for over 2 years by now.

Remember , I used to be nicknamed as "os17fan"

I have very good web server skills when it comes to helping people get
something installed on Abyss Web Server , sorry if it sounded that way.
Back to top View user's profile Send private message Visit poster's website
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Tue Aug 16, 2005 6:41 am    Post subject: Reply with quote

TRUSTpunk wrote:
Don't take it personal but I've known Abyss for over 2 years by now.

Remember , I used to be nicknamed as "os17fan"

I have very good web server skills when it comes to helping people get
something installed on Abyss Web Server , sorry if it sounded that way.


Doesn't bother me. Just sounded cocky.
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group