Lua Server Pages (CGILua)

 
Post new topic   Reply to topic    Aprelium Forum Index -> Tutorials
View previous topic :: View next topic  
Author Message
rrinc
-


Joined: 24 Feb 2006
Posts: 725
Location: Arkansas, USA

PostPosted: Mon May 21, 2007 5:21 am    Post subject: Lua Server Pages (CGILua) Reply with quote

Lua is a fast and simple programming language, so I thought why not use it on the web? I stumbled across CGILua and experimented trying to get it to work with Abyss and I succeeded.

(This tutorial is for Windows)

To install CGILua and get it working with Abyss Webserver, download the Windows version of Kepler: http://luaforge.net/frs/?group_id=104
(I would say just download CGILua, but the Windows version of Kepler has it compiled and ready for use)

Install Kepler (it doesn't matter too much what all you choose to install, but you will need CGILua). (Don't install Xavante or just make sure you don't run it, Xavante is a webserver...but thats what we have Abyss for.)

In Abyss Webserver's Control Panel, goto Scripting Parameters and click add in the Interpreters table.

For Interface, choose FastCGI - Local Pipes
For Interpreter, browse to C:\Program Files\Kepler (or wherever you installed Kepler). And click fastcgi.exe

Leave the arguments field blank.

For type, choose PHP Style. This is crucial otherwise you'll be given a ton of errors.

For associated extensions you can put lua, lsp, lp, or whatever you want. There isn't really a standard. Though lp and lua is probably the most common.

You have successfully setup CGILua! You can see http://lua-users.org for tutorials and stuff on how to use Lua. For CGILua and specific ways on how to use Lua with it, see:
http://www.keplerproject.org/cgilua/manual.html#scripts
http://www.keplerproject.org/cgilua/manual.html#templates
http://www.keplerproject.org/cgilua/reference.html


I hope you find this useful.
_________________
-Blake | New Server :D
SaveTheInternet
Soy hispanohablante. Puedes contactarme por mensajes privados.
Back to top View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu May 24, 2007 5:53 pm    Post subject: Re: Lua Server Pages (CGILua) Reply with quote

rrinc,

Thank you for the tutorial. It seems that there are many people using Lua with Abyss Web Server. We'll try to add a page about it in our official support section and hopefully this will motivate others to give this nifty language a try.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Tutorials 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