Re: php + odbc + pervsive = problem
Uzytkownik "Jerry Stuckle" <jstucklex@attglobal.net> napisal w wiadomosci
news:NsidnbJb3_FfMk_anZ2dnUVZ_jWdnZ2d@comcast.com. ..
> Lukasz wrote:
>>>> I have a problem with configuration PHP on server linux which is
>>>> connected with distant server pervasive 8.5(novell). Connection odbc
>>>> work without problems isql myDSN , Connected!
>>>> I added in php.ini file correct "extension" as well as "extension_dir"
>>>> but mistake appears when I was trying to initiate connection to base
>>>> pervasive with level PHP.
>>>> code which executes
>>>> $ con = odbc_connect(myDSN, "", "") or die(odbc_errormsg() );
>>>> mistake displays :
>>>> [unixODBC][Driver Manager]Can't open lib "/ usr / lib / php5 /
>>>> extensions / odbcci.so " : libpscore.so.1: cannot open shared object
>>>> file: Just such file or directory
>>>> I do not understand this message because the files are in this
>>>> location.
>>>> I hope you will answer as soon as possible.
>>>>
>>>> I greet
>>>> Łukasz Kos
>>> Where is your libpscore.so? Is it in a directory accessible to PHP?
>>>
>>> --
>> Yes of course.
>>
>> Order :
>> ldd /usr/lib/php5/extensions/libpscore.so.1
>> linux-gate.so.1 => (0xffffe000)
>> libpthread.so.0 => /lib/libpthread.so.0 (0xb7ecb000)
>> libdl.so.2 => /lib/libdl.so.2 (0xb7ec7000)
>> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7ebc000)
>> libc.so.6 => /lib/libc.so.6 (0xb7d9c000)
>> /lib/ld-linux.so.2 (0x80000000)
>>
>>
>> file linux-gate.so.1 does not exist on disc, It could be the reason of
>> the problem ?
>
> Definitely. PHP can't load the module if one of the modules it requires
> doesn't exist.
>
OK ! I added path / usr / lib / php5 / extensions to file ld.so.conf and I
executed recommendation ldconfig which it displayed mistake :
"ldconfig: /usr/local/psql/lib/libpscore.so.1 is not a symbolic link"
connection ODBC to database pervasive does not throw out mistakes ! in /
var / log / apache2 / error_log throws out announcement child pid 22527
exit signal Segmentation fault (11) how I can to conduct debug ?
|