|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-04-11 11:49 UTC] regainfo at usa dot net
I'm novice to PHP3. Thankyou in advance for the help I need.
My goal is to use PHP3 Informix functions on my RedHat 6.1
Linux Box to hook Relational Databases on other systems.
My environment is:
RedHat 6.1 Kernel 2.2.12 Glibc 2.1.2
Apache 1.3.12
PHP3 3.0.15
Informix Client SDK 2.40.UC1-2 (For Linux 2.2.12 Glibc 2.1.2)
I tried both the dynamic Loading of PHP3 via Apache DSO
and also the static one, with the same results.
I set the Env Variables INFORMIXDIR=/usr/informix (not /usr/informix/lib),
PATH=/usr/informix/bin, LD_LIBRARY_PATH="/usr/informix/lib/".(run time).
as indicated in php.net. The configure, make and make install of php3
worked fine.
Configure line (DSO mode) is:
configure --with-apxs="path to apxs bin" \
--with-informix=yes \
--with-mysql \
--with-xml
I got the following error at the start of Apache at the line of httpd.conf
LoadModule libexec/libphp3.so:
"Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/lib/apache/libexec/libphp3.so into server:
/usr/lib/apache/libexec/libphp3.so
undefined symbol: ifx_module_entry."
It sounds like no real compilation of php3 informix driver happened.
I noted some lines commented in functions/ifx.ec.
The same in the static compilation oh PHP3 with Apache.
At the "make" of Apache source I got:
"...libphp3.a(internal_functios.o):In function 'getParameterArray'
/usr/php3/php-3.015/internal_functions.c: 231
undefined reference to 'ifx_module_entry'
collect2:ld returned 1 exit status".
Thank again in advance for any kind of help.
Remo Ronchitelli
regainfo@usa.net
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 20:00:01 2025 UTC |
Installation of "informix" option in Apache/PHP3 statically linked. The versions of Sofware pieces were: Linux RedHat 6.1 (Kernel 2.2.12 Glibc 2.1.2) Apache 1.3.12 PHP 3.0.15 Informix Client SDK 2.40.UC1-2 (For Linux 2.2.12 Glibc 2.1.2) I used a script, "informix.script" to set Environment Variables needed to make PHP and to run Apache: INFORMIXDIR="/usr/informix" export INFORMIXDIR PATH="$PATH:$INFORMIXDIR/bin" export PATH INFORMIXSERVER="order_entry_server" # entry in /usr/informix/etc/sqlhosts export INFORMIXSERVER LD_LIBRARY_PATH="/usr/informix/lib" export LD_LIBRARY_PATH As kindly suggested by Danny Heijl "dheijl@pandora.be",these were the steps: 1. . (point) informix.script 2. cd /usr/apache-1.3.12 3. ./configure --prefix="/usr/local/apache" 4. cd /usr/php-3.0.15 5. ./configure --with-informix=yes \ --with-apache="/usr/apache-1.3.12" \ --with-mysql \ # my own optional choice --with-xml # my own optional choice 6. make; make install 7. cp /usr/informix/lib/esql/*.so /usr/informix/lib # to avoid make Apache error "libifsql.so not found, etc" 8. cd /usr/apache-1.3.12 9. ./configure --activate-module=src/modules/php3/libphp3.a \ --enable-module=most \ --enable-module=so 10. make; make install 11. vi /usr/local/apache/conf/httpd.conf 12 vi /etc/rc.d/init.d/apachectl # (insert script "informix.script") After the succesfull make of Apache, PHP connection to Informix Remote Server, on a SCO UNIX machine, worked very fine. Remo Ronchitelli rremo@usa.net P.S. I missed the password to close the problen#4104 at http://bugs.php.net/