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....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
Ł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 ================== |
|
|||
|
>> 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 ? |
|
|||
|
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 ================== |
|
|||
|
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 ? |
|
|||
|
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 ================== |
![]() |
| Thread Tools | |
| Display Modes | |
|
|