mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-18 18:08:54 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@166704 c90b9560-bf6c-de11-be94-00142212c4b1
144 lines
4.5 KiB
XML
144 lines
4.5 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.6 $ -->
|
|
<sect1 id="install.macosx.server">
|
|
<title>Compiling for OS X Server</title>
|
|
|
|
<formalpara 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
|
|
<ulink url="&url.stepwise.macosx-client;">Mac OS X client</ulink>
|
|
and
|
|
<ulink url="&url.stepwise.macosx-client;">Mac OS X server</ulink>
|
|
are available at <ulink url="&url.stepwise;">Stepwise</ulink>.
|
|
</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
|
|
-->
|