473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Informix error with ifx_pconnect()

I have had this problem in the past on another machine and fixed it by
setting the environment variables for INFORMIXDIR and INFORMIXSERVER. When
adding the same lines on the new machine I still get the following message:

Warning: ifx_pconnect(): E [SQLSTATE=IX 001 SQLCODE=-1829] in
:\webroot\PHPinclude\db_vars.inc on line 7

I tried doing what I did before, but still is not working. Doing
"phpinfo();" The following information is displayed:

PHP Version 4.3.6

System Windows NT DAVIDS 5.1 build 2600
Build Date Apr 14 2004 17:17:11
Server API Apache 2.0 Handler

Under apache2handler:
Apache Version Apache/2.0.49 (Win32) PHP/4.3.6

Under Apache Environment:
INFORMIXDIR C:\informix
INFORMIXSERVER dbserver

And under Environment I have:
INFORMIXDIR C:\informix

I am using the Informix-Client 9.21 2.30.TC1. I have been able to connect to
the Informix database using ILogin Demo and I have been able to connect
using WinSQL.

Any help would be appreciated.

Thanks,
David
Jul 17 '05 #1
4 5713
Hi,

On Thu, 20 May 2004 14:44:30 -0400, "D. Sandmann"
<ds*******@emcosales.com> wrote:
I have had this problem in the past on another machine and fixed it by
setting the environment variables for INFORMIXDIR and INFORMIXSERVER. When
adding the same lines on the new machine I still get the following message:

Warning: ifx_pconnect(): E [SQLSTATE=IX 001 SQLCODE=-1829] in
:\webroot\PHPinclude\db_vars.inc on line 7


Check out http://www.oninit.com/errorcode/index.html

Meaning, your $INFORMIX is not set in your environment. You also need
$INFORMIXSERVER.

Don't forget to restart Apache.

HTH, Jochen
--
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 17 '05 #2
Thanks Jochen.

I assume you ment $INFORMIXDIR when you said $INFORMIX. Yes I do have these
two set. And yes I did make sure to restart Apache. I set them in
httpd.conf. I have also set them in my windows environment. These are the
lines I have in httpd.conf and they happen after the standard LoadModule
area:

#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so

######
# Start - Informix Stuff
######
SetEnv INFORMIXDIR "C:\informix
SetEnv INFORMIXSERVER "emco5"
######
# End - Informix Stuff
######

LoadModule php4_module c:\PHP\sapi\php4apache2.dll
#AddModule mod_php4.c
AddType application/x-httpd-php .php
#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

David

"Jochen Daum" <jo*********@cabletalk.co.nz> wrote in message
news:pq********************************@4ax.com...
Hi,

On Thu, 20 May 2004 14:44:30 -0400, "D. Sandmann"
<ds*******@emcosales.com> wrote:
I have had this problem in the past on another machine and fixed it by
setting the environment variables for INFORMIXDIR and INFORMIXSERVER. Whenadding the same lines on the new machine I still get the following message:
Warning: ifx_pconnect(): E [SQLSTATE=IX 001 SQLCODE=-1829] in
:\webroot\PHPinclude\db_vars.inc on line 7


Check out http://www.oninit.com/errorcode/index.html

Meaning, your $INFORMIX is not set in your environment. You also need
$INFORMIXSERVER.

Don't forget to restart Apache.

HTH, Jochen
--
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/

Jul 17 '05 #3
Just noticed a quote missing from the INFORMIXDIR assignment. Added the
quote there, but still no luck.

David

"D. Sandmann" <ds*******@emcosales.com> wrote in message
news:10*************@corp.supernews.com...
Thanks Jochen.

I assume you ment $INFORMIXDIR when you said $INFORMIX. Yes I do have these two set. And yes I did make sure to restart Apache. I set them in
httpd.conf. I have also set them in my windows environment. These are the
lines I have in httpd.conf and they happen after the standard LoadModule
area:

#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so

######
# Start - Informix Stuff
######
SetEnv INFORMIXDIR "C:\informix
SetEnv INFORMIXSERVER "emco5"
######
# End - Informix Stuff
######

LoadModule php4_module c:\PHP\sapi\php4apache2.dll
#AddModule mod_php4.c
AddType application/x-httpd-php .php
#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus # Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

David

"Jochen Daum" <jo*********@cabletalk.co.nz> wrote in message
news:pq********************************@4ax.com...
Hi,

On Thu, 20 May 2004 14:44:30 -0400, "D. Sandmann"
<ds*******@emcosales.com> wrote:
I have had this problem in the past on another machine and fixed it by
setting the environment variables for INFORMIXDIR and INFORMIXSERVER. Whenadding the same lines on the new machine I still get the following message:
Warning: ifx_pconnect(): E [SQLSTATE=IX 001 SQLCODE=-1829] in
:\webroot\PHPinclude\db_vars.inc on line 7


Check out http://www.oninit.com/errorcode/index.html

Meaning, your $INFORMIX is not set in your environment. You also need
$INFORMIXSERVER.

Don't forget to restart Apache.

HTH, Jochen
--
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/


Jul 17 '05 #4
Hi,

On Fri, 21 May 2004 09:30:03 -0400, "D. Sandmann"
<ds*******@emcosales.com> wrote:
Thanks Jochen.

I assume you ment $INFORMIXDIR when you said $INFORMIX. Yes I do have these
two set. And yes I did make sure to restart Apache. I set them in
httpd.conf. I have also set them in my windows environment. These are the
lines I have in httpd.conf and they happen after the standard LoadModule
area:

#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so

######
# Start - Informix Stuff
######
SetEnv INFORMIXDIR "C:\informix
SetEnv INFORMIXSERVER "emco5"


I don't have them in quotes. I'm not on Windows though. Also also use
Apache 1.3.

HTH, Jochen
--
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Brian McLaughlin | last post by:
I have a Solaris machine running Informix and a Linux machine with the Informix SDK installed. I've been running php scripts for a couple months now on the Linux box that connect to Informix and...
1
by: Gary Quiring | last post by:
I am trying to use PHP 5.0.4 on Solaris 9 (Sparc) with SDK 2.81.UC3 or SDK 2.90FC1. When I fire up httpd I get the following error: Cannot load /usr/apache/libexec/libphp5.so into server:...
3
by: Christian Eriksson | last post by:
Hi! I'm programming Perl DBI accessing Informix databases. I have a problem on a Solaris machine to use my installed Informix driver (DBD::Informix). I get the following error message: ...
0
by: Lee | last post by:
I'm writting a program using Visual C++. Basically the program will tap to a line, received the data and process and finally insert into Informix Database. It happen that day the insertion of data...
10
by: Joachim Banzhaf | last post by:
Hi, Creating the federated datasource library for informix fails for me. The db2 server is version 8.1 WSE on AIX 4.3. The informix client on this server is version CSDK 2.81/ESQL 9.53 UC2....
0
by: vishalp79 | last post by:
Hi, I am trying to install DBD::Informix module on perl on hpux 11.23 machine. but i get this weird error ...... Set up gcc environment - 4.1.1 *** ExtUtils::AutoInstall version 0.61 ***...
0
by: Lester Knutsen | last post by:
A two-day IBM Informix and DB2 User Group Technical Conference - Friday and Saturday, December 8-9, 2006 We are very please to announce our Keynote Speakers...
0
by: Prasad | last post by:
Hi, We have DB2 v9 FP2 on AIX 5.3 64-bit. We have Informix 7 on another AIX 5.3. Our requirement is to access Informix tables from within a DB2 database. I installed Informix Client SDK 2.9...
14
by: Khan | last post by:
Hello, I want to connect my intranet server (with php/apache) to the other informix database server, But I didnt it. I dont know how i can do it? Can i use php_informix extensions for example...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.