note 35389 added to install.hpux
| From: | Marcus dot Reimann at reimann-systemberatung dot de | Date: | Fri, 29 Aug 2003 12:50:58 +0000 |
| Subject: | note 35389 added to install.hpux | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-55295@lists.php.net to get a copy of this message | ||
If you need an Apache2-Server with PHP4 under HP-UX 11.x, it's a good way to download the
HP-WebServer from the HP-Website (http://software.hp.com). The HP-Webserver comes with numerous
moduls. First install the HP-Webserver (swinstall -s
/absolute_path_to_depot_file/name_of_depot_file). After that, download the newest PHP-Version from
http://www.php.net (HP ships the HP-Webserver with an old
PHP-Version) and unpack the tar-file in a working-directory.
Use the following parameters for configure PHP:
./configure --with-apxs2=/opt/hpws/apache/bin/apxs --prefix=/opt/hpws/apache/php [and so on...]
If configure prints the error "expr: An integer value was expected.", than you have to
edit the Script "configure". Replace the line:
APACHE_VERSION=
expr $4 \* 1000000 + $5 \* 1000 + $6
with the following (correct and very long) line:
APACHE_VERSION=$APXS_HTTPD -v | head -1 | cut -f3 -d' ' | cut -f2 -d'/' |
awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 +
$3;}'
Why? The output of "httpd -v" prints the following string:
Server version: HP-UX_Apache-based_Web_Server/2.0.46
Server built: Jun 26 2003 04:41:28
But the configure-Script can't deal with this string.
----
Manual Page -- http://www.php.net/manual/en/install.hpux.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35389
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35389&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35389&report=yes