The log file says that it (PHP) cannot open the odbc.so file: [30-Apr-2009 13:44:43] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/odbc.so' - libodbc.so. 1: failed to map segment from shared object: Permission denied in Unknown on lin e 0 I looked up the error and came across this page: http://www.easysoft.com/developer/languages/php/apache_odbc.html scroll to the bottom it has some info about ‘Make sure the dynamic linker can find the unixODBC driver manager shared object libodbc.xx and any shared objects required by the ODBC driver. This means adding their paths to LD_LIBRARY_PATH, LIBPATH or SHLIBPATH environment variables or editing /etc/ld.so.conf, depending on your platform.’ I added: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/easysoft/unixODBC/lib:/usr/local/easysoft/lib export LD_LIBRARY_PATH That did not make a difference either. On google search it seems libpath and shlibpath are versions of LD_LIBRARY_PATH for other Linux OSs? Anyone any idea what this error is trying to tell me? thanks.
First off, was php working fine before you tried installing this odbc extension? Were you able to confirm that unixodbc was installed correctly? Lastly, did you recompile php with the odbc extension included? I don't think it's possible to just add the odbc extension to the php.ini file as you would do with windows. In this case, it requires recompiling php.
hello login and in shell type : yum install php-odbc if no find package install RPMforge http://dag.wieers.com/rpm/FAQ.php#B2 best