HP-UX specific installation notes
This section contains notes and hints specific to installing PHP on HP-UX systems.
There are two main options for installing PHP on HP-UX systems. Either compile it, or install a pre-compiled binary.
Official pre-compiled packages are located here: » http://software.hp.com/
Until this manual section is rewritten, the documentation about compiling PHP (and related extensions) on HP-UX systems has been removed. For now, consider reading the following external resource: » Building Apache and PHP on HP-UX 11.11
HP-UX specific installation Notes
Installing PHP 5.x with Apache 2.x on HP UX 11i and configuring
PHP 5.x with Oracle 9i
I am very glad to share this information to configure PHP 5.x work
with Apache 2.x and Oracle 9i on HP UX 11i.
Step 1: Install Apache 2.x with DSO support:
This is a stratight forward Apache installation with
gzip -d httpd-2_0_NN.tar.gz
tar xvf httpd-2_0_NN.tar
You can add other options as required.
Step 2: Install and configure PHP 5.x with Oracle 9i
Edit the ./configure file to change “$OCI8_DIR/lib” as “$OCI8_DIR/lib32”
By default, with Oracle 9i, “$OCI8_DIR/lib” will be poiting to
Oracle 64 bit libraries in “$OCI8_DIR/lib64″ directory.
Unfortunately, PHP 5.x does not work with 64 bit oracle shared libraries.
$ ./configure \
You can add other options as required. You can use the –help
option to configure to get a complete list.
After configure runs, you must edit the file libtool.
$ vi ./libtool
At line 184, you should change the line from:
so that PHP and mod_php are properly compiled.
3. Compile and install the files.
Run make. This should complete normally.
Run make install. This will fail when it attempts to call apxs.
$ make install
Step 3: Configure Apache 2.x
Edit httpd.conf file to include
For PHP 5:
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
Set environment variables in $APACHE_ROOT/bin/envvars file
After lot of hard work, by following the above procedure,
we were able to make PHP 5.x is work with Apache 2.x
and Oracle 9i on HP UX 11i OS.