Re: Problems with Informix, Apache and PHP Installation
Posted in 1999
Topics: Installation, Setup & Upgrades, Connectivity: ESQL/C, 4GL & Embedded SQL, Server Administration, Internationalization & Character Sets
In article <MPG.12bb5fefa720932098969b@news.xtra.co.nz>,
afalout@ihug.co.nz wrote:
> In article <82p8cm$lks$1@nnrp1.deja.com>, smartin@tdn.es says...
> > I'm running a Red-Hat 6.0 and I have installed Apache, Postgres and
PHP
> > correctly and works well.
> >
> > Informix is installed too. I exec dbaccess and runs ok.
> > I have installed :
> > *
informix_se___esql_c_bundle_7_24_uc5_for_linux_on_kernel_2_0_34.zip
> >
informix_4gl_rapid_development_system_7_20_ud7_for_intel_pentium_linux_2
> > _0_34.zip
> > * csdk230uc11_linux.rpm
> >
> > I build php with --with-informix and it's ok,
> > but when i restart apache i get the next message :
> >
> > Syntax error on line 224 of /usr/local/apache/conf/httpd.conf:
> > Cannot load /usr/local/apache/libexec/libphp3.so into server:
> > /usr/local/apache/libexec/libphp3.so: undefined symbol:
ifx_module_entry
> > /usr/local/apache/bin/apachectl start: httpd could not be started
> >
> > What's wrong?
> >
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.
> >
>
> I'm running very similar combination, without a problem. First, from
> Apache user (probably nobody) environment, there must be a way to
find
> Informix libraries at httpd runtime. So check LD_LIBRARY_PATH there.
you
> will need $INFORMIXDIR/lib, .../lib/c++ .../lib/cli ../lib/dmi, etc.
>
> Second, a simple way to check this, might be to setup appropriate
> environment as current user, and start HTTPD from there.
>
> Third, it might be useful to define this in httpd.conf, as
>
> SetEnv LD_LIBRALY_PATH /.../.../etc.
>
> You also want to set INFORMIXDIR and probably some other Informix
> environment variable there.
>
> If this does not help, you will probably need to define something
like
>
> IFX_LIBDIR="-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql"
> IFX_INCDIR="$INFORMIXDIR/incl/esql"
> IFX_LIBS="$INFORMIXDIR/lib/esql/libifsql.a \\
> $INFORMIXDIR/lib/libifasf.a \\
> $INFORMIXDIR/lib/esql/libifgen.a \\
> $INFORMIXDIR/lib/esql/libifos.a \\
> $INFORMIXDIR/lib/esql/libifgls.a \\
> -lgen -lgls -lm -ldl $INFORMIXDIR/lib/esql/checkapi.o \\
> $INFORMIXDIR/lib/esql/libifglx.a"
>
> export IFX_LIBDIR IFX_INCDIR IFX_LIBS
>
> before you make PHP with --with-informix.
>
> You can see my current PHP environment on http://www.falout.com .
There
> is a test page there (follow the "play" link on the home page)
>
> HTH,
>
> --
> Yours, Andrej Falout, http://www.falout.com ICQ 7628616 ++64.21.607517
> #-----------------------------------------------------------------
> globals "std_disclaimer.4gl"
>
> Ask yourself just one question: ' Qu' m's se puede hacer y aprender ?
> - Propellerhead ReBirth RB-338 manual
>
Just set IFX_* in /etc/profile and LD_LIBRARY_PATH.
I have tryed with SetEnv /usr/informix/c++ /usr/informix/cli ... , but
i have get a semantic error.
After do theese things i get the same error
Syntax error on line 224 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp3.so into server:
/usr/local/apache/libexec/libphp3.so: undefined symbol: ifx_module_entry
/usr/local/apache/bin/apachectl start: httpd could not be started
when I restart apache
What is wrong?
Sent via Deja.com http://www.deja.com/
Before you buy.