LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 05-22-2008, 04:23 PM   #1
skb2005
LQ Newbie
 
Registered: Aug 2007
Posts: 6

Rep: Reputation: 0
Installing PHP-5.2.6 with Informix Support on RHEL-5


Hi All,

I need help installing PHP-5.2.6 with informix support on RHEL-5.

I have installed Apache --Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b DAV/2 PHP/5.2.6

I have used the following script to install PHP

Code:
wget http://us3.php.net/get/php-5.2.6.tar.gz/from/us.php.net/mirror ;

tar -zxvf php-5.2.6.tar.gz

cd php-5.2.6

./buildconf --force

./configure \
--prefix=/usr/local/apache2/php \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-config-file-path=/usr/local/apache2/php/conf \
--with-gd \
--with-png-dir=/usr/lib \
--with-jpeg-dir=/usr/lib \
--with-zlib \
--with-zlib-dir=/usr/lib \
--with-freetype \
--enable-gd-native-ttf \
--with-mssql \
--with-openssl=/usr/local/ssl \
--enable-shmop \
--enable-sockets \
--enable-sysvshm \
--with-curl \
--with-curlwrappers \
--with-pfpro=/usr/local/verisign/payflowpro/linuxrh9 \
--enable-xml \
--enable-pdo \
--with-pdo-informix=/home/informix \
--enable-shared


make
make test
make install
I do not encounter any error during the installation.

When I try to execute PHP which connects to Informix, i get the following error:

Fatal error: Call to undefined function ifx_connect() in /usr/local/apache2/htdocs/dbfuncs.inc on line 86




Please help.

Thanks,

Sanjiv
 
Old 05-22-2008, 04:27 PM   #2
skb2005
LQ Newbie
 
Registered: Aug 2007
Posts: 6

Original Poster
Rep: Reputation: 0
I forgot to mention that we have Informix Dynamic Server 11 (IDS 11).
Informix ClientSDK is also installed.
I initialized informix environment variables as well.
 
Old 05-22-2008, 06:22 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Get the src rpm from RHEL (newest version) and look at the spec file. It will give you a good idea what needs to happen in order to setup the "standard" php on RHEL.
 
Old 05-23-2008, 10:05 AM   #4
skb2005
LQ Newbie
 
Registered: Aug 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Which spec file are we talking about? I would appreciate if you can explain in little detail.
 
Old 05-23-2008, 10:24 AM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
The spec file for php from the newest RHEL PHP src.rpm. Basically the spec file tells the src.rpm how to build the source in such a way that RHEL will be happy (all the flags and directories that need to be redirected). Now the version of the src.rpm will probably be older than the version you are compiling, but it should get you 90% of the way there. Normally (assuming you are running Gnome), you can just right click on the src.rpm and extract here. This will give you the spec file and the source (still tarred). You can ignore the source (from the src.rpm).
 
  


Reply

Tags
php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem: Installing Informix Client on Debian haertig Linux - Software 1 05-26-2007 05:03 PM
Installing Apache 2.2.x failing on Informix, RedHat EL 4 ColinAnderson Linux - Server 1 02-08-2007 09:57 AM
RHEL 4 - Installing Chinese input support Firebar Red Hat 4 05-18-2006 03:47 AM
Installing php with mysql support Elguapo Linux - Software 3 07-21-2005 09:58 PM
PHP and Informix kaiozero General 0 11-12-2001 10:42 AM


All times are GMT -5. The time now is 02:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration