TransWikia.com

Can't load driver file apr_dbd_mysql.so when restarting Apache

Server Fault Asked by Display on December 24, 2020

I have an Apache 2.2 version running on a Centos 7.1 machine running a LAMP stack (MySql version 5.6). Apache has been configured to enable the DBD modules, and running a DUMP_MODULES using httpd shows them as loaded.

When I try to stop the server I get the error:
DBD: Can't load driver file apr_dbd_mysql.so

I have tried to install various packages such as apr-util-mysql but that did not fix the error.

The specific file does exist in the /usr/lib64/apr-util-1/ directory.

Does anyone have any idea how I can debug or fix this?

2 Answers

I fixed it! Reconfiguring my Apache --with-included-apr and doing a make/make install linked the library into the Apache.

Answered by Display on December 24, 2020

You're so close. apr_dbd_mysql.so was created when you installed apr-util-mysql from yum. This is a shared module and provides apache with the driver required to communicate with mysql. Simply move apr_dbd_mysql.so into your apache modules directory ../apache2/modules/ and that should fix your bug.

Answered by csc3422-help on December 24, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP