problem with apache and php-odbc

From: AldoX (mc7569NOSPAM_at_NOSPAMmclink.it)
Date: 10/29/04


Date: Fri, 29 Oct 2004 17:17:38 +0200

Hi all.
On a LAMP, I have a php page which accesses an external db (DB") via an
odbc call:

> $dsn = "DRIVER=iSeries Access ODBC Driver;SYSTEM=$isdb_system";
>
> $db = odbc_pconnect($dsn, $user, $password);

This page, launched at the command line, woks fine.
The same page, loaded into a browser (i.e.: called by Apache) doesn't
work, and in /var/log/httpd/error_log appears:

> [Fri Oct 29 13:42:05 2004] [notice] child pid 10935 exit signal
Segmentation fault (11)

It looks like an Apache's problem... No questions about "apache" user's
privileges, because from the command line the page works even if
launched by the apache user.

So, where's the problem ?

Thanks
Aldo



Relevant Pages

  • Re: VFP Updates?
    ... Try talking ODBC or OleDb and they say HU. ... make up my apps so that what ever they want to run has to be from a command ... kind of connection and assign it the right to do exactly what you want. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: i cant call subversion from php with shell_exec()
    ... It's not as if the issue is one of validating the command ... with Subversion itself, since I'm including the username and password ... apache has probably all the rights needed to run the svn executable. ... But if it is your development working copy, apache must get permissions ...
    (comp.lang.php)
  • Re: Performance using adOpenKeyset and adUseServer
    ... In the ODBC case, no cursor is being built. ... This command returns the first ... > When using ODBC, this command opens very fast. ...
    (microsoft.public.data.ado)
  • Re: Using Ssh, How To See Server Specification
    ... which command tells me the disk space, RAM size, swap size? ... How can I check if apache is installed or not? ... how to install them, but, i do not know how to uninstall default Red ... If you are not getting any response for rpm -q for apache use command ...
    (alt.os.linux.redhat)
  • Bug in OdbcCommandBuilder
    ... I need to access Sybase ASE Server 12.0, but Oledb provider provided by ... so I have to use ODBC. ... the command text built is: ...
    (microsoft.public.dotnet.languages.csharp)