Mailing List Archive

[Bug 65098] New: [debian 10 ] cannot use mysql DBDriver, Can't load driver file apr_dbd_mysql.so
https://bz.apache.org/bugzilla/show_bug.cgi?id=65098

Bug ID: 65098
Summary: [debian 10 ] cannot use mysql DBDriver, Can't load
driver file apr_dbd_mysql.so
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_authn_dbd
Assignee: bugs@httpd.apache.org
Reporter: lbcbash@gmail.com
Target Milestone: ---

hello

i'm need to build apache + apr to use the digest auth with mysql db, the build
is successful but at the runtime i've got the error:

Can't load driver file apr_dbd_mysql.so

my config:

LoadModule dbd_module modules/mod_dbd.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule authz_dbd_module modules/mod_authz_dbd.so

DBDriver mysql
DBDParams "host=127.0.0.1 dbname=sso user=sso pass=....."
...

here is my full build procedure ( the same exact procedure is OK under debian
9) :

debian 10.7

apt update; apt-get install -y wget lsb-release build-essential autoconf
pkg-config libssl-dev php-pear git unzip php-dev default-libmysqlclient-dev
libpcre3-dev libxml2-dev libmm-dev libxml2-dev libssl-dev libssh2-1-dev
libmemcached-dev libxslt1-dev libbz2-dev libmcrypt-dev libtidy-dev
libcurl4-gnutls-dev libc-client2007e-dev libltdl-dev libicu-dev libreadline-dev
libpq-dev libgdcm2-dev libjpeg62-turbo-dev libpng-dev libxpm-dev
libfreetype6-dev libexpat1-dev
/bin/mkdir -p /home/src && cd /home/src
/usr/bin/wget http://mirrors.ircam.fr/pub/apache//httpd/httpd-2.4.46.tar.gz &&
tar xvfz httpd-2.4.46.tar.gz
/usr/bin/wget http://apache.crihan.fr/dist/apr/apr-1.7.0.tar.gz && tar xvfz
apr-1*.tar.gz && mv apr-1.7.0 httpd-2.4.46/srclib/apr
/usr/bin/wget http://apache.crihan.fr/dist//apr/apr-util-1.6.1.tar.gz && tar
xvfz apr-util-1*.tar.gz && mv apr-util-1.6.1 httpd-2.4.46/srclib/apr-util
cd httpd-2.4.46/
./configure --prefix=/home/bin/httpd24 --with-included-apr --with-mpm=prefork
--with-mysql --enable-mods-static='rewrite deflate vhost-alias expires headers
log-config auth-digest unixd status env setenvif access-compat mime dir
authn-core authn-file authz-user authz-core authz-host authz-groupfile
auth-basic filter unique-id'
make clean;time make && make install

/home/bin/httpd24/bin/httpd -v
Server version: Apache/2.4.46 (Unix)
Server built: Jan 22 2021 14:21:42

# /home/bin/httpd24/bin/apachectl configtest
AH00526: Syntax error on line 5 of /home/conf/apache.conf:
Can't load driver file apr_dbd_mysql.so

Any help appreciated

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org