Installing PHP 4.2.3 on AIX 5.2

From: Stephen Spalding (ssaixadm@YAHOO.COM)
Date: Wed Feb 25 2004 - 10:41:43 EST


Hello all,

I'm trying to get PHP 4.2.3 installed on a new AIX 5.2
box, and I've run into something I haven't seen
before.

I've installed the Linux-toolbox version of Apache
1.3.27-2, and it seems to work just fine. I'm trying
to install PHP with the ability to connect to an
oracle instance. Here's my PHP configure command:

./configure --with-apxs=/opt/freeware/apache/sbin/apxs
--enable-force-cgi-redirect --enable-safe-mode
--enable-magic-quotes --without-mysql
--with-oci8=/oracle/app/oracle/product/8.1.7
--enable-sigchild --enable-shared

I then run 'make', and copy the file
./.libs/libphp4.so.0 to ./libs/libphp4.so. I then
'make install' and then finally 'cp php.ini-dist
/usr/local/lib/php.ini'. I update the httpd.conf file
to include 'LoadModule php4_module
libexec/libphp4.so' and 'AddModule mod_php4.c'.

The problem occurs when I stop and restart apache.
This is the error that I get:

# ./apachectl start
Syntax error on line 236 of
/etc/opt/freeware/apache/httpd.conf:
Cannot load /opt/freeware/apache/libexec/libphp4.so
into server: Exec format error
./apachectl start: httpd could not be started

I've gotten this to work on AIX 4.3.3 and AIX 5.1.
Also, I've tried compiling the source of apache along
with php, but I got the same results.

Can anyone help me?

Thanks!

-Stephen Spalding

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:37 EDT