Got PHP working with Oracle IAS 1.0.2, 8i, and AIX 4.3.3!! It is
possible. There is a problem since the configure script does not properly
handle the fact that AIX 4.3.3 does not include the alloca() function in
its standard library. We went through the C/header files undefining
HAS_ALLOCA before running a make, but talking to one of our UNIX wizards
he said we could add -ma to the compiler flags before running a make and
this would have the same effect. I haven't tried this yet though. I
tested OCI support and that works linking with the libraries in the
/ias/6iserver home. You just have to make sure to include those
directories in the include path in config_vars.mk before running make
since it doesn't look like 6iserver keeps the header files in the standard
place. Well, good luck, let me know if you need any other details
Michael.
Michael Champagne, Software Engineer
Capital Institutional Services, Inc.
wk: [EMAIL PROTECTED]
Krznaric Michael <[EMAIL PROTECTED]>
02/06/01 12:56 PM
To: "'Michael Champagne'" <[EMAIL PROTECTED]>
cc: [EMAIL PROTECTED]
Subject: RE: [PHP-INST] PHP seg faults on AIX 4.3.3
I am using version 1.0.2 of IAS with oracle 8i. I
haven't compiled
in php yet as I am still in the process of migrating our existing
applications. I will very shortly be attempting to compile PHP and that's
why I took an interest in your post. It's always nice knowing that someone
else has successfully done it before you.
Now, I have successfully compiled php with support for
oracle 8 and
8i. It took a few tries to get it right, but as I understand it, the only
way you can compile oci support for php is if you link against the full
oracle 8i libraries. That means that you must have oracle 8i installed
(even if the DB is not running) on the same machine as Apache. Hence,
when
I saw your post about compiling PHP against the 6iserver/lib directory I
was
very surprised. Most people have their database on a different machine.
So
I've been able to get away with NFS mounting my 8i ORACLE_HOME and then
compiling php. This has the drawback that if the NFS connection should
ever
go down, you apache will most likely dump core.
So try linking against your 8i ORACLE_HOME and see if you
still get
the same problem.
Mike
-----Original Message-----
From: Michael Champagne [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 3:26 PM
To: Krznaric Michael
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-INST] PHP seg faults on AIX 4.3.3
I couldn't get PHP to compile with ORACLE_HOME set to the IAS home since
there is no libcore4.so in /ias/lib. I specified my ORACLE_HOME as
/ias/6iserver and it found the OCI libraries in /ias/6iserver/lib. Have
you been able to get PHP working with IAS? Also, what version of IAS are
you on? We were trying it with 8i (v. 1.0). We just installed 9i (v.
1.0.2) and we haven't tried it with this yet.
Thanks,
Mike
Krznaric Michael <[EMAIL PROTECTED]>
02/05/01 03:00 PM
To: "'Michael Champagne'" <[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
cc:
Subject: RE: [PHP-INST] PHP seg faults on AIX 4.3.3
I don't have an answer for you. Sorry to get your hopes
up.
I'm also using Oracle IAS, i noticed you compiled your
php
--with-oci8=/ias/6iserver. I don't think this is a valid path for oci8
libraries? Please explain?
Mike
-----Original Message-----
From: Michael Champagne [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 03, 2001 12:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] PHP seg faults on AIX 4.3.3
We are running Oracle IAS 1.0.0.0 on AIX 4.3.3. Oracle's IAS runs Apache
1.3.9 and the
root Apache directory is in /ias/Apache/Apache. We have a soft link from
/usr/local/apache
-> /ias/Apache. We are installing our PHP source from
/usr/tools/src/php-4.0.4pl1/ and I
believe the config script uses /usr/local as it's prefix? We ran make and
make install
and we bring up Apache with mod_php successfully. At the first request
however, php cores in
the /ias/Apache/Apache directory. The request is simply running
phpinfo(). I see the
following message in our httpds_error_log:
[Fri Feb 2 11:26:34 2001] [notice] Apache/1.3.9 (Unix) PHP/4.0.4pl1
mod_perl/1.21
ApacheJServ/1.1 configured --
resuming normal operations
[Fri Feb 2 11:26:58 2001] [notice] child pid 17026 exit signal
Segmentation fault (11)
Here's what I see in the core file:
Segmentation fault in sig_coredump at 0x10003824
0x10003824 (sig_coredump+0x3c) 80410014 l r2,0x14(r1)
(dbx) where
sig_coredump(0xb) at 0x10003824
alloca() at 0xd36ccef8
php_execute_script(0x2ff22530), line 1181 in "main.c"
apache_php_module_main(0x20255e30, 0x0), line 89 in "sapi_apache.c"
send_php(0x20255e30, 0x0, 0x20257dc0), line 516 in "mod_php4.c"
send_parsed_php(0x20255e30), line 527 in "mod_php4.c"
ap_invoke_handler(0x20255e30) at 0x100c3138
process_request_internal(0x20255e30) at 0x100edf8c
ap_process_request(0x20255e30) at 0x100ef4f8
child_main(0x0) at 0x10002058
make_child(0x2004ed20, 0x0, 0x3a7adfba) at 0x10001a18
startup_children(0x5) at 0x10001804
standalone_main(0x3, 0x2ff229e8) at 0x10000d24
http_main.main(0x3, 0x2ff229e8) at 0x100008c8
Our configure scripts is run with:
configure --with-apxs=/ias/Apache/Apache/bin/apxs
--with-oci8=/ias/6iserver
--without-mysql
Does anyone know what I'm doing wrong here?
Thanks for your help,
Michael Champagne, Software Engineer
Capital Institutional Services, Inc.
wk: [EMAIL PROTECTED]
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
******************************************************************
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction, unless specifically agreed otherwise. All market
prices, data and other information are not warranted as to
completeness or accuracy and are subject to change without
notice. Any comments or statements made herein do not
necessarily reflect the views or opinions of Capital Institutional
Services, Inc. Capital Institutional Services, Inc. accepts no
liability for any errors or omissions arising as a result of
transmission. Use of this communication by other than intended
recipients is prohibited.
******************************************************************
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]