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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: DwayneMcGarty at Solectron dot Com
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 08:01:28 2024 UTC