myH2Oservers
Verified User
I have to create a connection to a database within my apache config (rewritemap/rewritecond), therefore I am using:
DBDriver mysql
DBDParams "host=127.0.0.1 port=3306 user=username pass=password"
DBDParams "dbname=database_name"
However when I restart Apache it fails with error:
Can't load driver file apr_dbd_mysql.so
This apr_dbd_mysql.so is indeed not present on the system and should be originated from apr-utils. When I manually extract apr-utils from custombuild it finds the sources:
[root@web1 custombuild]# locate apr_dbd_mysql
/usr/local/directadmin/custombuild/apr-util-1.5.4/dbd/apr_dbd_mysql.c
/usr/local/directadmin/custombuild/apr-util-1.5.4/dbd/apr_dbd_mysql.dep
/usr/local/directadmin/custombuild/apr-util-1.5.4/dbd/apr_dbd_mysql.dsp
/usr/local/directadmin/custombuild/apr-util-1.5.4/dbd/apr_dbd_mysql.mak
However building Apache through custombuild does not add this apr_dbd_mysql.so to the system.
I analysed the custombuild "build" script but it only copies the content of apr-utils/apr to the srclib directory of apache before compiling apache.
How can I get apr_dbd_mysql.so available in Apache?
DBDriver mysql
DBDParams "host=127.0.0.1 port=3306 user=username pass=password"
DBDParams "dbname=database_name"
However when I restart Apache it fails with error:
Can't load driver file apr_dbd_mysql.so
This apr_dbd_mysql.so is indeed not present on the system and should be originated from apr-utils. When I manually extract apr-utils from custombuild it finds the sources:
[root@web1 custombuild]# locate apr_dbd_mysql
/usr/local/directadmin/custombuild/apr-util-1.5.4/dbd/apr_dbd_mysql.c
/usr/local/directadmin/custombuild/apr-util-1.5.4/dbd/apr_dbd_mysql.dep
/usr/local/directadmin/custombuild/apr-util-1.5.4/dbd/apr_dbd_mysql.dsp
/usr/local/directadmin/custombuild/apr-util-1.5.4/dbd/apr_dbd_mysql.mak
However building Apache through custombuild does not add this apr_dbd_mysql.so to the system.
I analysed the custombuild "build" script but it only copies the content of apr-utils/apr to the srclib directory of apache before compiling apache.
How can I get apr_dbd_mysql.so available in Apache?