In mid-December I asked about installing php on an AIX system, I was having
trouble when I got to the 'make install' command, essentially the
libphp4.so was not being created in the ./libs directory of the php install
source, and the 'make install' was failing because it couldn't copy this
into the libexec directory for apache. I was configuring
--with-apxs=/path/to/apxs.
After trying to change the apxs script (Jim Thome even had me send it to
him so he could see what mine looked like and make the edit changes), to
see .a instead of .so as module file, I was still in the same boat. The
'make install' command wasn't creating the libphp4.so file. I did notice
that if I compiled without apxs things went smoothley, but I didn't have a
libphp4.so file still, so that wasn't going to get php running.
Jim then suggested that I compile it as CGI and then reconfigure apache to
add it to the binary. This is what I did and it worked great. So, for any
future AIX users that have the same issues I did here is what I did stepwise.
1 - apachectl stop
2 - from the source directory of the install files (where it uncompressed
and untarred) -
configure --with-apache=/path/to/apache/source --with-mysql
--prefix=/usr/local/apache
the path to the apache source is where you installed apache from.
3 - make
4 - make install
5 - copy the libphp4.a and libphp4.la from the ./libs to the
/src/modules/php4 directory
6 - cd to the /path/to/apache/source/
7 - reconfigure apache:
configure --activate-module=src/modules/php4/libphp4.a
8 - Check your httpd.conf file to make sure it understands how to handle
php extensions (AddType application/x-httpd-php .php, AddType
application/x-httpd-php .php4, AddType application/x-httpd-php-source .phps
should be in there).
9 - apachectl start
And voila. Use a phpinfo() and it should show the new version.
I want to be sure and thank Jim Thome, without his expertise and help I
would never have gotten this to work. In fact I would say it was entirely
his expertise that got this to work :)
-=-=-=-=-=-=-=-=-=-==-=-=-=-=--=-=-=-=-=-
Kirt Thomas [EMAIL PROTECTED]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- [PHP-INST] Installing php on AIX (4.3.3) Kirt Thomas
- Re: [PHP-INST] Installing php on AIX (4.3.3) Jim Thome
- Re: [PHP-INST] Installing php on AIX (4.3.3) Kirt Thomas
- Re: [PHP-INST] Installing php on AIX (4.3.3) Jim Thome
- Re: [PHP-INST] Installing php on AIX (4.3.3) Kirt Thomas
- Kirt Thomas