Held together by spare time: Reviving wiki.alpinelinux.org during PHP2Shell

本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。

Held together by spare time: Reviving wiki.alpinelinux.org during PHP2Shell · November 21, 2026. It feels like this month (and last month..) has been nonstop chaos. PHP2Shell threw a nice little grenade into an already busy month, and while that was happening a GitLab RCE took down Alpine’s GitLab instance. It was a whole thing, and as frustrating as it was, I’m kind of proud to say that I got to help respond to the event and write the incident announcement.

靠业余时间维系:在 PHP2Shell 期间复活 wiki.alpinelinux.org · 2026 年 11 月 21 日。感觉这个月(以及上个月……)一直处于不断的混乱之中。PHP2Shell 在本就繁忙的月份里投下了一枚小小的“手榴弹”,与此同时,一个 GitLab 远程代码执行(RCE)漏洞导致 Alpine 的 GitLab 实例宕机。这整件事虽然令人沮丧,但我很自豪能参与事件响应并撰写事故公告。

Ikke did all of the real heavy lifting, but it takes a community to keep a distribution together. Everything, and I mean everything, is kept together by volunteers lending their time and talent with no expectation that there will be a reward for the effort. We do it because we care for the work being done. Whether it’s a critical service enabling a community of tens of thousands to distribute hundreds of petabytes of data that we call “Alpine”, or simply enabling a small piece of software to work for personal desires. All of it happens because someone cares enough to do the work.

Ikke 承担了所有真正的重活,但维持一个发行版需要整个社区的努力。一切,我是说一切,都是由志愿者贡献时间和才华来维系的,他们并不期待任何回报。我们这样做是因为我们关心这项工作。无论是支持数万人的社区分发我们称之为“Alpine”的数百 PB 数据,还是仅仅让一个小软件满足个人需求,这一切的发生都是因为有人足够关心并愿意去完成它。

I love this so much, frankly. It’s absolutely flabbergasting what we as a community can do with our spare time. I enjoy giving my time to Alpine Linux, because there’s a community, and because we can have an outsized impact on the world by collaborating together. It’s not perfect, but it’s rewarding. I think I owe my career to it in a sense. I’ve learned so much by simply raising my hand and being willing to give my time and learn a few new things. But there’s a limit to how far you get on donated time, both personally, and as a project.

坦白说,我非常热爱这一点。我们作为一个社区利用业余时间所能做到的事情简直令人震惊。我乐于为 Alpine Linux 贡献时间,因为这里有一个社区,而且通过协作,我们能对世界产生巨大的影响。它并不完美,但很有意义。从某种意义上说,我认为我的职业生涯要归功于它。我仅仅通过举手参与、愿意贡献时间并学习新事物,就学到了很多。但无论是个人还是项目,依靠捐赠的时间所能达到的程度是有极限的。

Wiki.alpinelinux.org has been languishing a bit. Not in the sense that it wasn’t used; it gets tons of traffic and contains a treasure trove of useful information that people depend on and are excited to contribute to. But between keeping the infrastructure afloat, migrating off of Equinix to new sponsored compute, and mitigating the constant wave of problems, from scale to RCE, that plague a small engineering team trying to serve a massive consumer base, well, it’s no wonder that once alice was no longer contributing, the infrastructure languished a bit. This wasn’t intentional, nor was it bad. There simply wasn’t spare time to contribute to it.

Wiki.alpinelinux.org 此前一直处于停滞状态。这并不是说它没人用;它拥有巨大的流量,并包含着人们所依赖且乐于贡献的宝贵信息。但在维持基础设施运行、从 Equinix 迁移到新的赞助计算资源,以及应对从规模扩展到 RCE 等不断涌现的问题(这些问题困扰着试图服务庞大用户群的小型工程团队)之间,难怪一旦 alice 不再贡献,基础设施就会变得有些荒废。这并非有意为之,也不是坏事,只是确实没有多余的时间去维护它。

So in November of last year ikke asked if anyone was interested in lending a bit of spare time to fixing that problem. Naturally, I raised my hand, happy to have an opportunity to do so. 2025-11-13 15:40:43 @ikke Anyone helping with infra that wants to help maintaining the wiki? 2025-11-13 15:57:01 durrendal ikke: I don’t mind helping out, just let me know what you need done.

因此,去年 11 月,ikke 询问是否有人愿意贡献一点业余时间来解决这个问题。我自然举手响应,很高兴能有这个机会。2025-11-13 15:40:43 @ikke 有没有参与基础设施维护的人想帮忙维护 wiki?2025-11-13 15:57:01 durrendal ikke:我不介意帮忙,告诉我需要做什么就行。

2025-11-13 16:10:46 @ikke durrendal: the wiki is hosted in an LXC container. 2025-11-13 16:18:11 durrendal that makes sense, it tracks how most everything else is deployed. It’s mediawiki, so php + a db. Is it using postgres on the backend, and do you have it behind traefik or something else? 2025-11-13 16:22:07 @ikke It uses mariadb. 2025-11-13 16:22:26 @ikke There is an nginx proxy in front. 2025-11-13 16:22:51 @ikke The database is in a separate container.

2025-11-13 16:10:46 @ikke durrendal:wiki 托管在一个 LXC 容器中。2025-11-13 16:18:11 durrendal 这很合理,这与大多数其他服务的部署方式一致。它是 MediaWiki,也就是 PHP + 数据库。后端用的是 Postgres 吗?前面有 Traefik 或其他代理吗?2025-11-13 16:22:07 @ikke 它用的是 MariaDB。2025-11-13 16:22:26 @ikke 前面有一个 Nginx 代理。2025-11-13 16:22:51 @ikke 数据库在另一个独立的容器里。

2025-11-13 16:26:56 durrendal That’s not bad, seems like a straight forward setup at first glance. I use mariadb for my zabbix deployments so that’s nice and familiar. 2025-11-13 16:34:47 @ikke The current setup uses a combination of git submodules and composer from what I can tell (alice was the last one taking care of it). All IRC timestamps in this post are in UTC.

2025-11-13 16:26:56 durrendal 还不错,乍一看设置挺直接的。我的 Zabbix 部署也用 MariaDB,所以很熟悉。2025-11-13 16:34:47 @ikke 据我所知,目前的设置结合了 git 子模块和 composer(alice 是最后一个负责它的人)。本文中所有 IRC 时间戳均为 UTC 时间。

This was essentially the sum of information I got about the wiki; it was all that was really documented. And despite my eagerness to jump in immediately and lift it up from whatever state it happened to be in, it took time to get access. We had a release to get out. We were fighting to get 3.23 finished and didn’t even get it wrapped up until 12/3/25! So it’s no wonder that it took until 1/16/26 before I got access to the server itself to start poking around and even begin to understand how the deployment was handled.

这基本上就是我关于 wiki 所能得到的全部信息;这就是所有真正记录在案的内容。尽管我急于立即投入工作,将其从当前状态中解救出来,但获取访问权限还是花了一些时间。我们当时有一个发布任务要完成。我们一直在努力完成 3.23 版本,直到 2025 年 12 月 3 日才最终搞定!所以难怪直到 2026 年 1 月 16 日我才获得服务器的访问权限,开始进行探索,并初步了解部署方式。

And as you can guess by the fact that I’m writing this post in October of 2026, I did not get in there and immediately upgrade it and move on. I’m never one to half-ass something. And I think that’s important. Even if I’m only giving away a limited amount of time, I hate to rush through things without fully understanding them. There’s just no way I can improve something if I don’t have a solid grounding. More importantly, I actually really love spelunking inside of old systems other sysadmins have set up.

正如你从我于 2026 年 10 月撰写此文的事实中所能猜到的那样,我并没有进去之后立即升级就完事了。我从不敷衍了事。我认为这一点很重要。即使我贡献的时间有限,我也不喜欢在没有完全理解的情况下匆忙行事。如果我没有扎实的基础,就不可能改进任何东西。更重要的是,我其实非常喜欢探索其他系统管理员设置的旧系统。

Everyone has a unique flair to how they deploy something. Enterprise admins end up deploying things in a real textbook manner, and when you deal with small businesses it’s usually a hodgepodge of “just get it done”. I haven’t had a ton of opportunities to spelunk FOSS infrastructure though! What I found was interesting in its own right, mostly because I don’t think I’d have deployed the service this way. What ikke told me was spot on: MediaWiki was a git checkout with extensions and skins vendored as submodules inside the repo.

每个人在部署服务时都有独特的风格。企业管理员倾向于以教科书般的方式部署,而处理小型企业时,通常是“先搞定再说”的大杂烩。不过,我并没有太多机会去探索开源基础设施!我所发现的东西本身就很有趣,主要是因为我不认为我会用这种方式部署该服务。ikke 告诉我的完全正确:MediaWiki 是一个 git checkout,其中的扩展和皮肤作为子模块包含在仓库中。

You could slot in new modules using composer, and as long as you had an appropriate underlying PHP version to work with, you were golden. But that was then mixed with actual wiki data, like images, all of it lumped together in /var/www. Very simple, but not obvious if you’d not dealt with it before. When I got into the server, MediaWiki 1.40.0 was running on PHP 8.2 on top of Alpine 3.20, but the LocalSettings.php that controlled the wiki was generated under 1.25.3.

你可以使用 composer 插入新模块,只要底层 PHP 版本合适,一切就没问题。但它与实际的 wiki 数据(如图片)混合在一起,全部堆在 /var/www 中。非常简单,但如果你以前没处理过,就不会那么直观。当我进入服务器时,MediaWiki 1.40.0 运行在 Alpine 3.20 上的 PHP 8.2 环境中,但控制 wiki 的 LocalSettings.php 是在 1.25.3 版本下生成的。

Just to give you a sense, 1.40.0 is from July 2023, and 1.25.3 is from October of 2015! It’s really neat to get a sense for how long something was tended for. Of course, our friends at the Internet Archive have been archiving the Alpine Wiki since April of 2010, and based on the main page I can tell you we’ve been using MediaWiki for a solid 16 years now, if not longer. I’m positive it’s not the same exact server, but probably the same-ish data. I made notes about all the little important bits I found.

给你一个概念,1.40.0 是 2023 年 7 月的版本,而 1.25.3 是 2015 年 10 月的版本!了解一个东西被维护了多久是一件非常酷的事情。当然,互联网档案馆(Internet Archive)的朋友们从 2010 年 4 月就开始归档 Alpine Wiki 了,根据主页来看,我可以告诉你,我们使用 MediaWiki 已经整整 16 年了,甚至可能更久。我敢肯定这不完全是同一台服务器,但数据大概是一样的。我记录下了我发现的所有重要的小细节。