php + odbc + pervsive = problem

This is a discussion on php + odbc + pervsive = problem within the PHP Language forums, part of the PHP Programming Forums category; Good Evening, I have a problem with configuration PHP on server linux which is connected with distant server pervasive 8....


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-08-2008
Łukasz
 
Posts: n/a
Default php + odbc + pervsive = problem

Good Evening,

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


Reply With Quote
  #2 (permalink)  
Old 03-08-2008
Jerry Stuckle
 
Posts: n/a
Default Re: php + odbc + pervsive = problem

Łukasz wrote:
> Good Evening,
>
> 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?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote
  #3 (permalink)  
Old 03-08-2008
Lukasz
 
Posts: n/a
Default Re: php + odbc + pervsive = problem



>> 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 ?


Reply With Quote
  #4 (permalink)  
Old 03-08-2008
Jerry Stuckle
 
Posts: n/a
Default Re: php + odbc + pervsive = problem

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.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote
  #5 (permalink)  
Old 03-08-2008
Lukasz
 
Posts: n/a
Default 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 ?


Reply With Quote
  #6 (permalink)  
Old 03-08-2008
Jerry Stuckle
 
Posts: n/a
Default Re: php + odbc + pervsive = problem

Lukasz wrote:
> 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 ?
>
>
>


I would suggest you verify you don't have multiple versions of modules
running around. For instance, you won't be able to load two versions of
the same shared library in Apache. And ensure library you compiled
against is the one you're using.

If that fails, you can start by getting a core dump and examining it to
see where the segfault is.

But that's beyond the purpose of this newsgroup - try a Linux admin
newsgroup. They have some good people who are familiar with
troubleshooting segfaults over there.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:08 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0