This task describes a workaround for the case when a console
using the MySQL database fails with message "Database
extension 'mysqli' not found." This problem occurs
on Red Hat Linux version 6.x when the following file is used:/opt/buildforge/server/apache/lib/php/extensions/no-debug-non-zts-20090626
- Check for missing libraries and permissions.
Use
the ldd command. Example response:
ldd: warning: you do not have execution permission for `./mysqli.so'
linux-gate.so.1 => (0x00413000)
libmysqlclient.so.15 => not found
.............
libssl.so.6 => not found
libcrypto.so.6 => not found
- Do one of the following tasks so that the libmysqlclient.so.15 library
can be found.
- Append the full path of libmysqlclient.so.15 to
LD_LIBRARY_PATH.
- Copy libmysqlclient.so.15 to /usr/lib.
- Add links to older libraries.
You need to add
links to older libraries manually. Example:
ln -s /usr/lib/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.6
ln -s /usr/lib/libssl.so.1.0.0 /usr/lib/libssl.so.6
- Restart the console.
A restart is required.