1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<sect1 id="install.unix.hpux">
<title>HP-UX specific installation notes</title>
<para>
This section contains notes and hints specific to installing PHP
on HP-UX systems. (Contributed by paul_mckay at clearwater-it dot co dot
uk).
</para>
<note>
<simpara>
These tips were written for PHP 4.0.4 and Apache 1.3.9.
</simpara>
</note>
<para>
<orderedlist>
<listitem>
<para>
You need gzip, download a binary distribution from
<filename>http://hpux.connect.org.uk/ftp/hpux/Gnu/gzip-1.2.4a/gzip-1.2.4a-sd-10.20.depot.Z</filename>
uncompress the file and install using swinstall.
</para>
</listitem>
<listitem>
<para>
You need gcc, download a binary distribution from
<filename>http://gatekeep.cs.utah.edu/ftp/hpux/Gnu/gcc-2.95.2/gcc-2.95.2-sd-10.20.depot.gz</filename>.
uncompress this file and install gcc using swinstall.
</para>
</listitem>
<listitem>
<para>
You need the GNU binutils, you can download a binary distribution from
<filename>http://hpux.connect.org.uk/ftp/hpux/Gnu/binutils-2.9.1/binutils-2.9.1-sd-10.20.depot.gz</filename>.
uncompress this file and install binutils using swinstall.
</para>
</listitem>
<listitem>
<para>
You now need bison, you can download a binary distribution from
<filename>http://hpux.connect.org.uk/ftp/hpux/Gnu/bison-1.28/bison-1.28-sd-10.20.depot.gz</filename>,
install as above.
</para>
</listitem>
<listitem>
<para>
You now need flex, you need to download the source from one of the
http://www.gnu.org mirrors. It is in the non-gnu directory of the ftp
site. Download the file, <command>gunzip</command>, then
<command>tar -xvf</command> it. Go into the newly created flex directory
and run <command>./configure</command>, followed by
<command>make</command>, and then <command>make install</command>.
</para>
<para>
If you have errors here, it's probably because gcc etc. are not in your
PATH so add them to your PATH.
</para>
</listitem>
<listitem>
<para>
Download the PHP and apache sources.
</para>
</listitem>
<listitem>
<para>
<command>gunzip</command> and <command>tar -xvf</command> them. We
need to hack a couple of files so that they can compile OK.
</para>
</listitem>
<listitem>
<para>
Firstly the configure file needs to be hacked because it seems to lose
track of the fact that you are a hpux machine, there will be a better
way of doing this but a cheap and cheerful hack is to put
<literal>lt_target=hpux10.20</literal> on line 47286 of the configure
script.
</para>
</listitem>
<listitem>
<para>
Next, the Apache GuessOS file needs to be hacked. Under
<filename>apache_1.3.9/src/helpers</filename> change line 89 from <literal>echo
"hp${HPUXMACH}-hpux${HPUXVER}"; exit 0</literal> to: <literal>echo
"hp${HPUXMACH}-hp-hpux${HPUXVER}"; exit 0</literal>
</para>
</listitem>
<listitem>
<para>
You cannot install PHP as a shared object under HP-UX so you must
compile it as a static, just follow the instructions at the Apache
page.
</para>
</listitem>
<listitem>
<para>
PHP and Apache should have compiled OK, but Apache won't start. you
need to create a new user for Apache, e.g. www, or apache. You then
change lines 252 and 253 of the <filename>conf/httpd.conf</filename> in
Apache so that instead of
</para>
<screen>
User nobody
Group nogroup
</screen>
<para>
you have something like
</para>
<screen>
User www
Group sys
</screen>
<para>
This is because you can't run Apache as nobody under hp-ux. Apache and
PHP should then work.
</para>
</listitem>
</orderedlist>
</para>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
|