<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Lua — LowEndSpirit</title>
        <link>https://lowendspirit.com/index.php?p=/</link>
        <pubDate>Thu, 04 Jun 2026 05:40:41 +0000</pubDate>
        <language>en</language>
            <description>Lua — LowEndSpirit</description>
    <atom:link href="https://lowendspirit.com/index.php?p=/discussions/tagged/lua/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Apt, Apache, and Lua</title>
        <link>https://lowendspirit.com/index.php?p=/discussion/7988/apt-apache-and-lua</link>
        <pubDate>Wed, 03 Jul 2024 05:35:42 +0000</pubDate>
        <category>Help</category>
        <dc:creator>Not_Oles</dc:creator>
        <guid isPermaLink="false">7988@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>Today I tried upgrading my server which is running Debian unstable. I noticed that apache2 was held back. Here are some notes and a few questions at the end. Any help and comments will be greatly appreciated. Thanks!</p>

<p><strong>Apt and Apache</strong></p>

<pre><code>root@lol ~ # apt-get update
Get:1 http://deb.debian.org/debian unstable InRelease [198 kB]
Get:2 http://deb.debian.org/debian unstable/main Sources [10.6 MB]
Get:3 http://deb.debian.org/debian unstable/main amd64 Packages [9,944 kB]
Get:4 http://deb.debian.org/debian unstable/main Translation-en [7,230 kB]
Fetched 28.0 MB in 2s (16.2 MB/s)                               
Reading package lists... Done
root@lol ~ # apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  apache2 apache2-bin apache2-data apache2-utils
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
root@lol ~ #
</code></pre>

<p>I wondered why apache2 was held back. I took a quick look at <code>man apt-get</code> and then tried to investigate with the <code>--dry-run</code> flag.</p>

<pre><code>root@lol ~ # man apt-get
root@lol ~ # apt-get full-upgrade --dry-run
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  liblua5.3-0
Use 'apt autoremove' to remove it.
The following NEW packages will be installed:
  liblua5.4-0
The following packages will be upgraded:
  apache2 apache2-bin apache2-data apache2-utils
4 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst liblua5.4-0 (5.4.6-3+b1 Debian:unstable [amd64])
Inst apache2 [2.4.59-2] (2.4.60-1 Debian:unstable [amd64]) []
Inst apache2-bin [2.4.59-2] (2.4.60-1 Debian:unstable [amd64]) []
Inst apache2-data [2.4.59-2] (2.4.60-1 Debian:unstable [all]) []
Inst apache2-utils [2.4.59-2] (2.4.60-1 Debian:unstable [amd64])
Conf liblua5.4-0 (5.4.6-3+b1 Debian:unstable [amd64])
Conf apache2 (2.4.60-1 Debian:unstable [amd64])
Conf apache2-bin (2.4.60-1 Debian:unstable [amd64])
Conf apache2-data (2.4.60-1 Debian:unstable [all])
Conf apache2-utils (2.4.60-1 Debian:unstable [amd64])
root@lol ~ # 
</code></pre>

<p><strong>Lua and Apache</strong></p>

<p>Looks like</p>

<ul>
<li>liblua5.3.0 had been installed,</li>
<li>the apache upgrade wanted liblua5.4.0, and that</li>
<li>apt was being careful by not auto-removing liblua5.3.0, which might have been in use.</li>
</ul>

<p>Lua? Why Lua? I didn't remember installing liblua. I had heard that Lua was a computer language, but I didn't know about Lua.</p>

<p>The first result of a Google search for "liblua apache" was a link to an article, <a rel="nofollow" href="https://www.admin-magazine.com/Articles/Lua-for-Apache_">Lua for Apache,</a> at admin-magazine.com. The article didn't seem to have a date, which always is a big red flag for me, but I decided to take a quick look. I was surprised that the article seemed well written.</p>

<p>I noticed that the article listing on Admin-magazine's home page had dates. So I searched in their search box for <a rel="nofollow" href="https://www.admin-magazine.com/content/search?SearchText=lua&amp;filter[]=contentclass_id:%2216%22&amp;activeFacets[class:Content%20type]=Article&amp;sort=score">articles containing the word "lua."</a> The second result was the article I wanted, Lua for Apache. The listing contained the date "10.07.2012."</p>

<p>The article explains that Lua is a scripting language developed in 1993 with these prominent features:</p>

<ul>
<li>small, fast interpreter,</li>
<li>C interface,</li>
<li>imperative and functional,</li>
<li>"rudimentary" support for object-oriented programming, and</li>
<li>"minimal syntax."</li>
</ul>

<p>The article says that the minimal syntax "makes Lua programs more cryptic than their PHP counterparts."</p>

<p>According to the article, there have been several implementations of Lua scripting for Apache. Several implementations are listed in the article. One of these, mod_wombat, by Brian McCallister, in 2006, has become [had become by 2012?] the mod_lua in the Apache mod family along with mod_perl and mod_php.</p>

<p>The article continues with</p>

<ul>
<li>how to compile Apache with Lua enabled,</li>
<li>Apache configuration [again from 2012?] for Lua,</li>
<li>a Lua Hello world example,</li>
<li>an example form for first and last name, and</li>
<li>a discussion of hooks.</li>
</ul>

<p><strong>Questions</strong></p>

<p>It looks like my Apt and apt-get options include</p>

<ul>
<li><code>apt autoremove</code> and then <code>apt-get upgrade</code>, and</li>
<li><code>apt-get full-upgrade</code>.</li>
</ul>

<p>Do I understand right that the former will leave liblua marked as autoinstalled, but that the latter will mark liblua as manually installed?</p>

<p>Does anybody here use Lua? Does anybody here use Lua with Apache? If yes, what particular feature of Lua appeals to you for your project?</p>

<p><strong>New Apt Terminal Colors</strong></p>

<p>By the way, Apt in Debian unstable has cool new terminal output colors! The new Apt colors look really great! It's fun to watch the Apt output!</p>

<p><strong>Wish</strong></p>

<p>Speaking of terminal colors, is anybody here using <a rel="nofollow" href="https://github.com/charmbracelet/wish">Wish?</a></p>
]]>
        </description>
    </item>
   </channel>
</rss>
