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 142 143 144
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<sect1 xml:id="install.macosx.server" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Compiling for OS X Server</title>
<formalpara xml:id="install.macosx.server.compile">
<title>Mac OS X Server install</title>
<para>
<orderedlist>
<listitem>
<simpara>Get the latest distributions of Apache and PHP.</simpara>
</listitem>
<listitem>
<para>
Untar them, and run the <command>configure</command> program on Apache
like so.
<programlisting role="shell">
<![CDATA[
./configure --exec-prefix=/usr \
--localstatedir=/var \
--mandir=/usr/share/man \
--libexecdir=/System/Library/Apache/Modules \
--iconsdir=/System/Library/Apache/Icons \
--includedir=/System/Library/Frameworks/Apache.framework/Versions/1.3/Headers \
--enable-shared=max \
--enable-module=most \
--target=apache
]]>
</programlisting>
</para>
</listitem>
<listitem>
<para>
If you want the compiler to do some optimization, you may also want to
add this line:
<programlisting role="shell">
<![CDATA[
setenv OPTIM=-O2
]]>
</programlisting>
</para>
</listitem>
<listitem>
<para>
Next, go to the PHP 4 source directory and configure it.
<programlisting role="shell">
<![CDATA[
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-xml \
--with-apache=/src/apache_1.3.12
]]>
</programlisting>
If you have any other additions (MySQL, GD, etc.), be sure to add them
here. For the <option role="configure">--with-apache</option> string, put
in the path to your apache source directory, for example
<filename class="directory">/src/apache_1.3.12</filename>.
</para>
</listitem>
<listitem>
<simpara>
Type <command>make</command> and <command>make install</command>. This
will add a directory to your Apache source directory under
<filename class="directory">src/modules/php4</filename>.
</simpara>
</listitem>
<listitem>
<para>
Now, reconfigure Apache to build in PHP 4.
<programlisting role="shell">
<![CDATA[
./configure --exec-prefix=/usr \
--localstatedir=/var \
--mandir=/usr/share/man \
--libexecdir=/System/Library/Apache/Modules \
--iconsdir=/System/Library/Apache/Icons \
--includedir=/System/Library/Frameworks/Apache.framework/Versions/1.3/Headers \
--enable-shared=max \
--enable-module=most \
--target=apache \
--activate-module=src/modules/php4/libphp4.a
]]>
</programlisting>
You may get a message telling you that <filename>libmodphp4.a</filename> is
out of date. If so, go to the <filename class="directory">src/modules/php4</filename>
directory inside your Apache source directory and run this command:
<command>ranlib libmodphp4.a</command>. Then go back to the root of the
Apache source directory and run the above <command>configure</command>
command again. That'll bring the link table up to date. Run
<command>make</command> and <command>make install</command> again.
</para>
</listitem>
<listitem>
<simpara>
Copy and rename the <filename>php.ini-dist</filename> file to your
<filename class="directory">bin</filename> directory from your PHP 4
source directory:
<userinput>cp php.ini-dist /usr/local/bin/php.ini</userinput>
or (if your don't have a local directory)
<userinput>cp php.ini-dist /usr/bin/php.ini</userinput>.
</simpara>
</listitem>
</orderedlist>
</para>
</formalpara>
<!--
<simpara>
TODO: Someone with Mac OS X skills needs to improve this DOC
Also, these links are 404 and outdated anyways and
stepwise doesn't support PHP anymore.
See also bug #14732
Other examples for
<link xlink:href="&url.stepwise.macosx-client;">Mac OS X client</link>
and
<link xlink:href="&url.stepwise.macosx-client;">Mac OS X server</link>
are available at <link xlink:href="&url.stepwise;">Stepwise</link>.
</simpara>
-->
</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
-->
|