Am 12.03.23 00:46 schrieb Werner Boninsegna: > Hello, > > I wonder if anybody is running Bugzilla in httpd? > > I have completed the setup and run the test scripts successfully, however > when trying to access it from the browser, I get below error: > > 'Pg' is not a valid choice for $db_driver in localconfig: > Can't load > '/usr/local/libdata/perl5/site_perl/amd64-openbsd/auto/DBD/Pg/Pg.so' for > module DBD::Pg: > Cannot load specified object > at /usr/libdata/perl5/amd64-openbsd/DynaLoader.pm line 193. > at Bugzilla/DB/Pg.pm line 30. > Compilation failed in require at Bugzilla/DB/Pg.pm line 30. > BEGIN failed--compilation aborted at Bugzilla/DB/Pg.pm line 30. > Compilation failed in require at (eval 201) line 1.If I run the Bugzilla > index.cgi scripts manually with Perl, everything works fine and I get the > initial HTML code generated. > > I think the problem might be related to the chroot, and I am probably missing > some dependency, any hints would be appreciated.
If you really want to run bugzilla as cgi application with slowcgi(8) then you have to copy the required perl modules in your chroot. I could imagine that this could become a time-consuming and cumbersome process. Personally I think it negates the logic of chrooted httpd(8) if you copy a large amount of stuff inside chroot. However since bugzilla is ultimately a cgi application you can deploy it via fastcgi which is supported by httpd(8) natively. I think this would be a better solution then mimic your perl installation inside chroot.

