RE: PHP access to Informix-SE
Posted in 2010
Walt, what does your line in the sqlhosts file look like for the Web Server to make the connection to the Sun Box?
From: informix-list-bounces@iiug.org [mailto:informix-list-bounces@iiug.org] On Behalf Of Hultgren, Walt
Sent: Thursday, January 21, 2010 12:48 PM
To: informix-list@iiug.org
Subject: PHP access to Informix-SE
I'm attempting to set up access to an Informix-SE database on a Sun server from a Web server running Apache/PHP on CentOS. So far, I'm having no success. Here's the environment -- the two versions each of Apache and PHP mean that I've tried them in various combinations:
Web Server:
- CentOS 5.4
- Apache 2.2.3 (w/CentOS), 2.0.63 (compiled locally)
- PHP 5.1.6 (w/CentOS), 5.3.1 (compiled locally)
- PDO Informix 1.2.6
- Informix Client SDK 3.50.FC6
Database Server:
- Sun Solaris 10
- Informx-SE 7.25.UC7
One question I have is whether I need Informix Client SDK or Informix Connect on the db server for this type of access. I don't currently have it, but just run sqlexecd. I can successfully connect to the Sun db server from a different Sun box using Informix tools (dbaccess, isql,...).
The two errors I see the most are when attempting PHP access from the CentOS box are "-11005: Invalid connection string attribute" from PHP, and (when I actually make it across to the Sun box) "-408: Invalid message type received from the sqlexec process" in the sqlexecd log. I can connect to the Sun db server from a different Sun box using Informix tools (dbaccess, isql,...) with no problem.
All of the info I've been able to find on the Web and various forums is geared toward IDS, and most of it is a little dated at this point.
If anyone has this type of set-up (or something close) working, I'd appreciate any suggestions you have, including which versions of the various packages to use.
Thanks,
Walt.
--
Walt Hultgren
Mailto:walt.hultgren@emory.edu<mailto:walt.hultgren@emory.edu> -- 404-727-0648
________________________________
This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.
If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).