On 2024-09-16, Biswakalyan Bhuyan <m...@surgot.tech> wrote: > Hello there, > > I've been trying to setup cgit on my OpenBSD server and encountered an > issue with running my own compiled version of `cgit.cgi`. Here's some > context: > > I followed the official instructions from the cgit README > [https://git.zx2c4.com/cgit/tree/README] and comiled cgit with lua > support using: > > `gmake LUA_PKGCONFIG=luajit CFLAGS="-I/usr/local/include/luajit-2.0" install` > > However, when I try to run the `cgit.cgi` with the following OpenBSD > `httpd` configuration, it doesn't work as expected: ... > The interesting part is that the official package cgit.cgi works > perfectly fine with this configuration, but as soon as i switch to my > compiled version with Lua support, it fails to load.
slowcgi(8) chroots to /var/www by default. The package version of cgit is statically linked to make it easier to run in chroot (and sets the config path to /conf/cgitrc, which when run inside this chroot ends up as /var/www/conf/cgitrc). > NOTE - I wanna use all the filters in the cgit projects that they have > provided If running in chroot, the chroot environment will need to include any executables/libraries/data files etc that are need to run filters. -- Please keep replies on the mailing list.