I just wanted to post this out here so nobody else has to go through the 
pain that I've gone through.  Here's my instructions on installing PHP 
4.0.4pl1 with OCI8 support on an AIX 4.3.3 box running Oracle's 9i 
Internet Application Server.  Please email me if this helps you so I will 
feel better about the hours I spent trying to get this to work.

NOTE: I ran all of this as the oracle user and I had my ORACLE_HOME set to 
/ias/6iserver.  This shouldn't be necessary since we specify this on the 
configure line but I did it to be safe.  Also, replace any references to 
the /ias directory below with whatever your 9iAS ORACLE_HOME is.

Add -I/ias/Apache/perl/lib/5.00503 to the end of the #!perl call at the 
top of the apxs script.  A perl module (strict.pm) is required but is not 
found in the include path when the configure script runs apxs.
Also, I'm not sure why, but Oracle 9iAS automatically assumes everyone is 
running Solaris.  In the apxs script change any '-DSOLARIS2=260' 
references to -DAIX=43.

NOTE: When I tested this I replaced the default Oracle 9iAS apxs script 
with the default Apache apxs script from the AIX distribution and put in 
all the Oracle specific environment variables.  I think this should work 
with the 9iAS apxs script if modified as detailed above.

AIX has a sparsely documented bug where alloca() is not defined on the 
system and the PHP configure script does not handle this properly.  We 
need to add -ma to any cc calls to get around this.  Export this in the CC 
environment variable as follows:

Run 
export CC='cc -Dinline= -ma'
./configure --with-apxs=/ias/Apache/Apache/bin/apxs 
--with-oci8=/ias/6iserver --without-mysql --prefix=/ias/Apache/Apache

After the configure script was done I edited config_vars.mk and added 
-I/ias/rdbms/demo and -I/ias/rdbms/public to the INCLUDES variable.  IAS 
keeps some of the oci8 header files in these directories.  Also, for 9i I 
had to add -I/ias/Apache/Apache/include to the INCLUDES variable.  I did 
not have to do this for 8iAS.

Created a link in /ias/6iserver/lib for libclntsh.a.  For some reason only 
a .so was included in 9iAS.  I checked 8iAS and this file is not missing 
here.  Run ln -s libclntsh.so libclntsh.a in this directory.

The configure script generates a script named 'libtool'.  Modify the 
archive_cmds= and archive_expsym_cmds line to include the following 
switch:

\${wl}-bI:/ias/Apache/Apache/libexec/httpd.exp

This tells PHP which calls to the Apache API have been exported and can be 
resolved at runtime.  I found
this from another post to this newsgroup.  Thanks!

Run make.

Run make install.

Make install modifies files in the Apache directory hierarchy 
(/ias/Apache/Apache) -- namely httpds.conf.  It also adds the module to 
the libexec directory so there may be issues with permissions in these 
directories.
We also had to pull the PHP module support out of an <IFDEFINE SSL> 
section in httpds.conf so that it is loaded all the time.  We then added 
the following lines to httpds.conf:

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

This routes file extensions of these types to mod_php.

THIS SHOULD BE IT.  Restart Apache and try running <? phpinfo() ?> through as a test.

Hope this comes in handy for someone.

Michael Champagne, Software Engineer
Capital Institutional Services, Inc.
wk: [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]

Reply via email to