php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12384 Can't connect to Ingres II
Submitted: 2001-07-25 20:39 UTC Modified: 2002-01-10 02:06 UTC
From: DwayneMcGarty at Solectron dot Com Assigned:
Status: Closed Package: *Database Functions
PHP Version: 4.0.6 OS: Redhat Linux 6.2
Private report: No CVE-ID: None
 [2001-07-25 20:39 UTC] DwayneMcGarty at Solectron dot Com
PHP compiled as an APXS module into apache 1.3.14 with Ingres II v2.5.  Although connecting through sql from the unix command line works, I can't get a connect to the Ingres database through PHP.

ingtest.php

<?

	$dbname = "kramer::imdb";
	$dbuser = "webmastr";
	$dbpass = "";

	ingres_connect($dbname, $dbuser, $dbpass);

?>

The error returned always is:

Jul 25 18:36:38 zcalb00d httpd: PHP Warning:  Ingres II:  Server or API error : Unable to authenticate client's user ID. in /data/www/htdocs/mdq3/ingtest.php on line 7
Jul 25 18:36:38 zcalb00d httpd: PHP Warning:  Ingres II:  SQLSTATE : 08004 in /data/www/htdocs/mdq3/ingtest.php on line 7
Jul 25 18:36:38 zcalb00d httpd: PHP Warning:  Ingres II:  Unable to connect to database (kramer::imdb) in /data/www/htdocs/mdq3/ingtest.php on line 7

Here is the configure line used to compile although I have tried shrinking the enable list down to do without the java, oracle, ldap etc with no change.

#!/bin/sh

CC=gcc
II_SYSTEM=/opt/ca/caingres
ORACLE_HOME=/u01/home/oracle/dist/8.1.5
LD_LIBRARY_PATH=/u01/home/oracle/dist/8.1.5/lib:$LD_LIBRARY_PATH
PATH=$PATH:/usr/java/jdk1.3.1/bin

export CC II_SYSTEM ORACLE_HOME LD_LIBRARY_PATH PATH


./configure	--prefix=/local/apps/fw/php			\
		--exec-prefix=/local/apps/fw/php		\
		--with-apxs=/usr/sbin/apxs			\
		--enable-track-vars				\
		--enable-yp					\
		--enable-sysvsem				\
		--enable-sysvshm				\
		--enable-sockets				\
		--enable-debug					\
		--with-java=/usr/java/jdk1.3.1			\
		--with-oci8					\
		--with-oracle					\
		--without-mysql					\
		--with-ldap					\
		--with-gd					\
		--with-gdbm					\
		--enable-sigchild				\
		--enable-versioning				\
		--with-ingres					\
		--enable-ftp


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-20 09:19 UTC] lobbin@php.net
Can you please try this with PHP 4.1.0?


R.
 [2002-01-10 02:06 UTC] lobbin@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed May 22 09:01:25 2019 UTC