Hi,

I've just upgraded fedora38 to fedora40 with apache-2.4.62 and now my my rewritemap doesn't work:

[Thu Aug 15 21:31:49.488178 2024] [rewrite:error] [pid 518406:tid 518478] (13)Permission denied: [client 68.195.111.42:0] AH00656: mod_rewrite: can't open DBM RewriteMap /etc/httpd/conf.d/my.map

It's readable by everyone. AH00656 is "can't open DBM", so perhaps I'm missing a module or library?

  httxt2dbm -i /etc/httpd/conf.d/mymap.txt -o /etc/httpd/conf.d/mymap.map -f default

  RewriteMap lsv2ids "dbm:/etc/httpd/conf.d/mymap.map"
  RewriteRule "/content/view/([0-9]{6})/?" "${lsv2ids:$1}" [L]

# httpd -M|grep rewrite
 rewrite_module (shared)

# httpd -M|grep dbm
 authn_dbm_module (shared)
 authz_dbm_module (shared)
 socache_dbm_module (shared)

I'm not sure what fedora package to install to provide GDBM? I've also tried SDBM, but it also responds with "can't open."

 -f    DBM Format.  If not specified, will use the APR Default.
           GDBM for GDBM files (unavailable)
           SDBM for SDBM files (available)
           DB   for berkeley DB files (unavailable)
           NDBM for NDBM files (unavailable)
           default for the default DBM type

# rpm -qva|grep -E 'gdbm|apr-util|libdb'
gdbm-libs-1.23-6.fc40.x86_64
libdb-5.3.28-62.fc40.x86_64
gdbm-1.23-6.fc40.x86_64
apr-util-openssl-1.6.3-16.fc40.x86_64
apr-util-1.6.3-16.fc40.x86_64
apr-util-lmdb-1.6.3-16.fc40.x86_64
compat-gdbm-libs-1.14.1-20.fc40.x86_64
compat-gdbm-1.14.1-20.fc40.x86_64

Reply via email to