Hi all,
I am trying to install PHP on an AIX 3.4 machine, which has IBM HTTP Server installed. As IBM HTTP server is basically apache, I did not expect any issues… However, I ran into a couple and was wondering if somebody had any suggestions.
The AIX 3.4 machine has the following IBM HTTP server version:
root@CWTS-B:/usr/HTTPServer# httpd -v
Server version: IBM_HTTP_Server/1.3.12.1 Apache/1.3.12 (Unix)
Server built: Sep 5 2000 13:03:32
I installed the binary php package php4-4.0.4.1.exe from.
http://www-frec.bull.com/cgi-bin/list_dir.cgi/download/aix432/
I ran installp from smitty:
[May 28 2001, 14:09:51]
#
/usr/lib/instl/sm_inst installp_cmd -a -Q -d '.' -f 'freeware.php4 ALL @@freeware.php4 _all_filesets' '-c ' '-N' '-g' '-X' '-G'
It flagged a pre-requisite error:
MISSING REQUISITES: The following filesets are required by one or more
of the selected filesets listed above. They are not currently installed
and could not be found on the installation media.
freeware.apache.rte 1.3.17.0 # Base Level Fileset
freeware.db3.rte 3.2.9.0 # Base Level Fileset
freeware.gnu.gdbm.rte 1.8.0.0 # Base Level Fileset
So I installed the db3 and gdbm packages successfully. However I can not install apache,as I do not want to uninstall IBM HTTP server (Websphere AS running on it etc).
QUESTION 1: Is there a way to override the pre-req check of installp ?
I actually managed to install all the files from the package in the correct locations manually.
I now updated the httpd.conf. I added the AddModule for PHP and I added the LoadModule.
AddModule mod_setenvif.c
AddModule mod_app_server.c
AddModule mod_php4.c
…
LoadModule setenvif_module libexec/mod_setenvif.so
LoadModule php4_module libexec/libphp4.so
LoadModule ibm_app_server_module /usr/WebSphere/AppServer/bin/mod_ibm_app_server.so
I then tried to start the apache (=IBM HTTP server) server, however this fails as apache tells me it can’t find the libphp4.so. The strange thing that it CAN find the module mod_setenvif.so which lives in the same directory :
root@CWTS-B:/usr/HTTPServer/bin# apachectl start
Syntax error on line 68 of /usr/HTTPServer/conf/httpd.conf:
Cannot load /usr/HTTPServer/libexec/libphp4.so into server: No such file or directory
/usr/HTTPServer/bin/apachectl start: httpd could not be started
And here to prove the file exists:
root@CWTS-B:/usr/HTTPServer/bin# ls -l /usr/HTTPServer/libexec/libphp4.so
-rwxr-xr-x 1 root system 1816783 May 28 17:15 /usr/HTTPServer/libexec/libphp4.so
QUESTION 2: Does anybody have any suggestions why apache will not start on this module ?
Many thanks for your suggestions,
Oscar