Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

mod_pLua / News: Recent posts

mod_pLua 0.54 released

mod_pLua 0.54 released

mod_pLua is an Apache HTTP Server 2.x module for developing web applications with Lua. http://sf.net/p/modplua

Changes in 0.54:

  • Fixed a bug where mod_dbd was required even though mod_pLua wasn't built for mod_dbd
  • Added string.md5() for making md5 hashes.
Posted by Daniel Gruno 2012-07-13

mod_pLua 0.53 released

mod_pLua 0.53 released

mod_pLua is an Apache HTTP Server 2.x module for developing web applications with Lua. http://sf.net/p/modplua

Changes in 0.53:

  • Fixed a memory leak in database connectivity with mod_dbd
  • Added the Auth-User environment variable for extracting the username from a basic auth request
  • Added a per-thread state mode (set pLuaStates to 0 to activate)
Posted by Daniel Gruno 2012-05-29

mod_pLua 0.52 released

mod_pLua 0.52 released

mod_pLua is an Apache HTTP Server 2.x module for developing web applications with Lua. http://sf.net/p/modplua

Changes in 0.52:

  • Fixed some warnings
  • Added setCookie() and getCookie() for setting and getting cookie values.
Posted by Daniel Gruno 2012-05-02 Labels: lua plua apache http mod_plua httpd apache 2

mod_pLua 0.51 released

mod_pLua 0.51 released

mod_pLua is an Apache HTTP Server 2.x module for developing web applications with Lua. http://sf.net/p/modplua

Changes in 0.51:

  • Moved a declaration from the header to the c file to ease APXS installation (thanks to Igor Galic for this patch)
  • Binaries built with mod_dbd support will no longer complain that mod_dbd isn't enabled when a connection fails
  • Fixed an issue where POST data from XMLHttpRequests was not properly recognized.... read more
Posted by Daniel Gruno 2012-03-08

mod_pLua 0.50 released

mod_pLua 0.50 released

mod_pLua is an Apache HTTP Server 2.x module for developing web applications with Lua. http://sf.net/p/modplua

Changes in 0.50:

  • The Makefile script will now properly clean up when make clean is called
  • getEnv() will now report a Server-Version value as well (major.minor.patch)
  • Directives are now only permissable within the main Apache configuration
  • The include() function now supports including plain lua files as set by the pLuaRaw directive
Posted by Daniel Gruno 2012-02-27

mod_pLua 0.49 released

mod_pLua 0.49 released

mod_pLua is an Apache HTTP Server 2.x module for developing web applications with Lua. http://sf.net/p/modplua

Changes in 0.49:

  • Modules built with apxs should now run on UNIX platforms with Lua 5.2
  • mod_pLua now supports the PUT and DELETE methods
  • Added getRequestBody([filename]) for reading the request body, optionally writing it to a file
Posted by Daniel Gruno 2012-02-21

mod_pLua 0.48 released

mod_pLua 0.48 released

mod_pLua is an Apache HTTP Server 2.x module for developing web applications with Lua. http://sf.net/p/modplua

Changes in 0.48:

  • Added file.send(filename) for sending static files using the internal sendfile mechanism
  • Calling sleep(n) with a negative number will now default to sleeping for 1 second
  • print(...) will now output the values of booleans and nils, as well as refs to tables, userdata and functions
  • Added string.explode(string, delimiter) for splitting up strings into chunks
  • Fixed a potential issue where the pLuaIgnoreLibrary directive could be read wrong
Posted by Daniel Gruno 2012-02-20

mod_pLua 0.47 released

mod_pLua 0.47 released

mod_pLua is an Apache HTTP Server 2.x module for developing web applications with Lua. http://sf.net/p/modplua

Changes in 0.47:

  • dbopen() now only requires one parameter if opening a mod_dbd connection
  • Content type is now assumed to be text/html by default
  • sleep() now accepts floating point values on UNIX systems
  • Fixed an issue where Lua 5.2 on certain platforms would not load libraries properly
Posted by Daniel Gruno 2012-02-19

mod_pLua 0.46 released

mod_pLua 0.46 released

mod_pLua is an Apache HTTP Server 2.x module for developing web applications with Lua. http://sf.net/p/modplua

Changes in 0.46:

  • Added the pLuaMemoryLimit directive for setting a memory limit (in kb) for each Lua state
  • Added the pLuaIgnoreLibrary directive for disabling specific libraries in the Lua states
  • The value of pLuaRuns is now properly followed

Using this release on Windows platforms with Lua 5.2 might cause some issues due to an unforeseen snafoo with Lua 5.2 not loading libraries as it should. This will be addressed in 0.47.

Posted by Daniel Gruno 2012-02-19

mod_pLua 0.45 released

mod_pLua 0.45 released

mod_pLua is an Apache HTTP Server 2.x module for developing web applications with Lua. http://sf.net/p/modplua

Changes in 0.45:

  • Fixed a bug (presumably) where db:close() could cause a segfault when using a mod_dbd handle
  • Removed the forced output flushing at 20KB data, as it doesn't seem to be needed
  • Added support for disabling short hand opening tags, <?, via the pLuaShortHand directive
  • Fixed an issue where <?lua tags in a script would cause the shorthand <? tags to be overlooked... read more
Posted by Daniel Gruno 2012-02-17

mod_pLua 0.44 released

mod_pLua 0.44 released.

mod_pLua is an Apache HTTP Server 2.x module for developing web applications with Lua. http://sf.net/p/modplua

Changes in 0.44:

  • Added support for mod_dbd (you can enable/disable it in mod_plua.h)
  • General code cleanup
  • Fixed a bug where dbclose and the database gc would clean up differently
  • Fixed a bad include in mod_plua.h that was halting compilations on some systems... read more
Posted by Daniel Gruno 2012-02-16

mod_pLua 0.43 released

mod_pLua 0.43 released.

mod_pLua is an Apache HTTP Server 2.x module for developing web applications with Lua. http://sf.net/p/modplua

Changes in 0.43:

  • Switched to the APXS system for compiling and installing mod_pLua - many thanks to Igor Galic for his help on this.
  • Cleaned up some code
  • setting header("Location", ...) will no longer trigger an automatic 302 response by httpd. Use httpError() or setReturnCode() for this.... read more
Posted by Daniel Gruno 2012-02-15

mod_pLua 0.42 released

mod_pLua 0.42 released.

mod_pLua is an Apache HTTP Server 2.x module for developing web applications with Lua. http://sf.net/p/modplua

Changes in 0.42:

  • Removed thread checks where they were not needed in Lua C function calls
  • Reinstated pushing the lua thread onto the registry when acquiring the state to avoid having to resort to the backup list
  • Added the Lua function httpError(N) for calling the internal Apache error handler with return code N
  • setReturnCode now only sets the return code, it does not call the Apache error handler... read more
Posted by Daniel Gruno 2012-02-14

mod_pLua 0.41 released

mod_pLua 0.41 released.

modpLua is an Apache2 module for displaying preprocessed Lua with a PHP-like syntax. http://sf.net/p/modplua

Changes in 0.41:

  • Added a backup state list for ensuring that external modules won't break the retrieval of handles

Thanks again to haste in #lua on Freenode for making this observation.

Posted by Daniel Gruno 2012-02-12

mod_pLua 0.40 released

mod_pLua 0.40 released.

modpLua is an Apache2 module for displaying preprocessed Lua with a PHP-like syntax. http://sf.net/p/modplua

Changes in 0.40:

  • Changed some default directive values
  • header() will now accept numbers as its second argument
  • Any shebang (#!) encountered on line 1 of raw lua files will now be ignored

A big thanks to haste from #lua on Freenode for suggesting these changes.

Posted by Daniel Gruno 2012-02-11

mod_pLua 0.39 released

mod_pLua 0.39 released.

modpLua is an Apache2 module for displaying preprocessed Lua with a PHP-like syntax. http://sf.net/p/modplua

Changes in 0.39:

  • Releasing a Lua state no longer requires a mutex lock
  • Garbage collection is now done less frequently, to boost performance
  • Various small performance tweaks
  • getPWD() now returns "." on failure instead of just 0
  • In the event of a Lua panic, errors will be copied to stderr as well
  • The script cache handler will now consider file size as well as time of modification to determine if an update is required
Posted by Daniel Gruno 2012-02-08

mod_pLua 0.38 released

mod_pLua 0.38 released.

modpLua is an Apache2 module for displaying preprocessed Lua with a PHP-like syntax. http://sf.net/p/modplua

Changes in 0.38:

  • The thread struct for each Lua state is now referenced at initialization instead of at execution time
  • The sleep() function will no longer allow scripts to sleep for longer than pLuaTimeout specifies (if set)
  • The rudimentary compiler (compile.sh) should now be able to link against any Lua library available
Posted by Daniel Gruno 2012-02-06

mod_pLua 0.37 released

mod_pLua 0.37 released.

modpLua is an Apache2 module for displaying preprocessed Lua with a PHP-like syntax. http://sf.net/p/modplua

Changes in 0.37:

  • Added a header file for managing structs, defs and prototypes.
  • Added the exit() Lua function for halting a script quietly. See the Wiki for more details.
Posted by Daniel Gruno 2012-02-05

mod_pLua 0.36 released

mod_pLua 0.36 released.

modpLua is an Apache2 module for displaying preprocessed Lua with a PHP-like syntax. http://sf.net/p/modplua

Changes in 0.36:

  • Re-enabled the global pool mutex that was shut off for debugging purposes
  • 404 errors now use apache's 404 handler instead
  • Changed the hooking procedure, so directives will be caught and used before the first pool is created
Posted by Daniel Gruno 2012-02-04

mod_pLua 0.35 released.

mod_pLua 0.35 released.

modpLua is an Apache2 module for displaying preprocessed Lua with a PHP-like syntax. http://sf.net/p/modplua

Changes in 0.35:

  • Databases opened with dbopen() should now properly close if GC'ed in Lua 5.2
  • The GC call for databases now has its own function for cleaning up, as opposed to using db:close()
  • Changed the maximum number of variables and chained variables allowed in a GET/POST request
  • Fixed a bug that would crash mod_pLua on Apache 2.4 when a compiler or runtime error was met
Posted by Daniel Gruno 2012-02-03 Labels: mod_plua lua apache

mod_pLua 0.34 released

mod_pLua 0.34 released.

modpLua is an Apache2 module for displaying preprocessed Lua with a PHP-like syntax. http://sf.net/p/modplua

Changes in 0.34:

  • compileTime() on UNIX will now return the time of the initial HTTP request as reported by Apache
  • pLuaMultiDomain is now enabled by default - let's see how it goes
  • Added pLuaLogLevel directive for setting what gets logged in the error.log file
  • Added a new unified pLua_getClock() function for accessing the precise time on all platforms
  • Calling clock() and compileTime() on any platform will now return the correct unix timestamp with microsecond accuracy
Posted by Daniel Gruno 2012-02-02

mod_pLua 0.33 released

mod_pLua 0.33 released.

modpLua is an Apache2 module for displaying preprocessed Lua with a PHP-like syntax.
http://sf.net/p/modplua

Changes in 0.33:

  • Added the sleep(N) function for primarilly testing purposes
  • mod_pLua now uses the file information passed on by Apache to speed things up
  • include() now uses apr_stat instead of stat
  • Updated some internal workings with the pLuaMultiDomain directive
Posted by Daniel Gruno 2012-02-01

mod_pLua 0.32 released. mod_pLua is an Apache2 module for displaying preprocessed Lua with a PHP-like syntax. http://sf.net/p/modplua

mod_pLua 0.32 released

modpLua is an Apache2 module for displaying preprocessed Lua with a PHP-like syntax.
http://sf.net/p/modplua

Changes in 0.32:
  • (experimental) support for dynamically allocated per-vhost state pools
  • Added the pLuaMultiDomain directive for enabling multiple state pools
  • Removed the old hardcoded state pool generators
  • Added the flush() function for flushing the output buffer immediately (remember to set your content type prior to this!)
  • Upped the default number of states to 50 again (just because)
Posted by Daniel Gruno 2012-01-31

mod_pLua 0.31 released. mod_pLua is an Apache2 module for displaying preprocessed Lua with a PHP-like syntax. http://sf.net/p/modplua

Changes in revision 31:

  • Added mutex support for Windows packages
  • Updated the mod_pLua example page (test.plua)
  • New pLua logo! I hope you like it :)
  • Added a last-minute resort to bundle up all excess vhosts into one state pool if no free pools are available
  • Did some rewriting to prepare for a dynamic allocation of new domain pools
Posted by Daniel Gruno 2012-01-30

mod_pLua 0.30 released. mod_pLua is an Apache2 module for displaying preprocessed Lua with a PHP-like syntax. http://sf.net/p/modplua

Revision 30 adds a new error handling directive in Apache for turning error messages on or off.

Setting the error directive in Apache

In the Apache configuration, you can set whether to show or hide error messages using the pLuaError directive:

pLuaError N

Where N can be either 1 for enabled (default) or 0 for disabled. If disabled, error messages will be suppressed.

Setting error handling in Lua:

The same directive can be set manually for each script using the Lua function showErrors(boolean).
For obvious reasons, running showErrors(false) will not suppress compiler errors in the given script, only syntax errors and compile errors in included files.

Posted by Daniel Gruno 2012-01-29