Installing BF on SLES: "database extension not found&qu
I'm trying to install Build Forge 7.1.2.2 and RAFW on SLES 11 with DB2 9.7. I've followed the steps in Installation Manager carefully, and the connection to the database seemed to work properly during installation. The "test connection" button in IM successfully connected to the database. I completed the installation process and everything seemed to install properly.
After installation, I start the server and visit http://localhost in a web browser. I get this message:
Based on the information in this technote, the issue is probably that the DB2 extension is not installed in PHP properly. So I checked the installation instructions (in particular, this topic). I think I've got the DB2 extension installed properly. In my php.ini file I have the following lines:
I've ensured that the ibm_db2.so file is in that extension_dir directory. Is there something else I need to do to install the DB2 extension properly? Thanks!
-Tim
After installation, I start the server and visit http://localhost in a web browser. I get this message:
The Build Forge system user interface has encountered an error from which it could not recover. Contact Build Forge technical support with the following information:
Database extension 'ibm_db2' not found.
Based on the information in this technote, the issue is probably that the DB2 extension is not installed in PHP properly. So I checked the installation instructions (in particular, this topic). I think I've got the DB2 extension installed properly. In my php.ini file I have the following lines:
extension_dir = "/opt/buildforge/server/apache/lib/php/extensions/no-debug-non-zts-20060613/"
...
extension=ibm_db2.so
I've ensured that the ibm_db2.so file is in that extension_dir directory. Is there something else I need to do to install the DB2 extension properly? Thanks!
-Tim
Accepted answer
I'm trying to install Build Forge 7.1.2.2 and RAFW on SLES 11 with DB2 9.7. I've followed the steps in Installation Manager carefully, and ... {snipped} ... I've ensured that the ibm_db2.so file is in that extension_dir directory. Is there something else I need to do to install the DB2 extension properly? Thanks!
-Tim
Have you checked your apache/logs/php_error.log for potential library load problems?
-steve
That error log shows this error:
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/buildforge/server/apache/lib/php/extensions/no-debug-non-zts-20060613/ibm_db2.so' - libdb2.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
libdb2.so.1 is available in my DB2 installation folder, but from this error I don't know if the issue is that Build Forge can't find that file or encountered an error when using it. I also checked the permissions for ibm_db2.so and they seem to be correct -- it belongs to the root user and has read permission enabled. Is there anything else I can check? Thanks for the help.
Are you starting bf as root? I might try that first to scare out potential permissions problems. I would then suggest su'ing to the user you start bf with and using 'ldd' on the '/opt/buildforge/server/apache/lib/php/extensions/no-debug-non-zts-20060613/ibm_db2.so' file to make sure it's satisfied. For reference, my db2 libs look like :
lrwxrwxrwx 1 sv sv 11 2010-08-30 13:58 libdb2.so -> libdb2.so.1*
-rwxr-xr-x 1 sv sv 18226523 2010-03-27 21:01 libdb2.so.1*
3 other answers
I'm trying to install Build Forge 7.1.2.2 and RAFW on SLES 11 with DB2 9.7. I've followed the steps in Installation Manager carefully, and ... {snipped} ... I've ensured that the ibm_db2.so file is in that extension_dir directory. Is there something else I need to do to install the DB2 extension properly? Thanks!
-Tim
Have you checked your apache/logs/php_error.log for potential library load problems?
-steve
I'm trying to install Build Forge 7.1.2.2 and RAFW on SLES 11 with DB2 9.7. I've followed the steps in Installation Manager carefully, and ... {snipped} ... I've ensured that the ibm_db2.so file is in that extension_dir directory. Is there something else I need to do to install the DB2 extension properly? Thanks!
-Tim
Have you checked your apache/logs/php_error.log for potential library load problems?
-steve
That error log shows this error:
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/buildforge/server/apache/lib/php/extensions/no-debug-non-zts-20060613/ibm_db2.so' - libdb2.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
libdb2.so.1 is available in my DB2 installation folder, but from this error I don't know if the issue is that Build Forge can't find that file or encountered an error when using it. I also checked the permissions for ibm_db2.so and they seem to be correct -- it belongs to the root user and has read permission enabled. Is there anything else I can check? Thanks for the help.
I would then suggest su'ing to the user you start bf with and using 'ldd' on the '/opt/buildforge/server/apache/lib/php/extensions/no-debug-non-zts-20060613/ibm_db2.so' file to make sure it's satisfied.
I was running as root -- I should have mentioned that.
LDD could not find the libdb2.so.1 file, so I had to add my DB2 lib32 folder to $LD_LIBRARY_PATH. Now LDD shows that all of ibm_db2.so's dependencies are met and I can log into Build Forge. Everything seems to be running properly.
Thanks for your help, Steve!