cvs: phpdoc-he /chapters install.macosx.xml
[email protected] ("Hadar Porat") Thu, 17 Jul 2003 19:26:23 -0000
| Newsgroups | php.doc.he |
|---|---|
| Message-ID | <cvshadar_p1058469983@cvsserver> |
hadar_p Thu Jul 17 15:26:23 2003 EDT
Modified files:
/phpdoc-he/chapters install.macosx.xml
Log:
Updated to reflect latest English version
Index: phpdoc-he/chapters/install.macosx.xml
diff -u phpdoc-he/chapters/install.macosx.xml:1.4 phpdoc-he/chapters/install.macosx.xml:1.5
--- phpdoc-he/chapters/install.macosx.xml:1.4 Sat May 17 15:40:08 2003
+++ phpdoc-he/chapters/install.macosx.xml Thu Jul 17 15:26:23 2003
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="WINDOWS-1255"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.5 $ -->
+<!-- HE-Revision: 1.00 Maintainer: hadar_p Status: complete -->
<sect1 id="install.macosx">
<title>äú÷ðåú ùì Unix/Mac OS X</title>
<para>
@@ -23,97 +24,139 @@
éùðï ùúé âéøñàåú ùåðåú áî÷öú ùì Mac OS X, ì÷åç
åùøú. ìäìï ä÷éîôåì ìùøú OS X.
</simpara>
- <example id="install.macosx.compile.example">
- <title>äú÷ðä ùì Mac OS X</title>
- <screen>
+ <formalpara id="install.macosx.compile.example">
+ <title>Mac OS X server install</title>
+ <para>
+ <orderedlist>
+ <listitem>
+ <simpara>äùâ àú ääôöåú äëé çãéùåú ùì Apache åùì PHP.</simpara>
+ </listitem>
+ <listitem>
+ <para>
+ ôúç àú ääôöåú, åäøõ àú úåëðú <command>configure</command> òì Apache
+ ëê.
+ <programlisting role="shell">
<![CDATA[
<div dir="ltr">
-1. Get the latest distributions of Apache and PHP
-2. Untar them, and run the configure program on Apache like so.
- ./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
-
-4. You may also want to add this line:
- setenv OPTIM=-O2
- If you want the compiler to do some optimization.
-
-5. Next, go to the PHP 4 source directory and configure it.
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/share/man \
- --with-xml \
- --with-apache=/src/apache_1.3.12
-
- If you have any other additions (MySQL, GD, etc.), be sure to add
- them here. For the --with-apache string, put in the path to your
- apache source directory, for example "/src/apache_1.3.12".
-6. make
-7. make install
- This will add a directory to your Apache source directory under
- src/modules/php4.
-
-8. Now, reconfigure Apache to build in PHP 4.
- ./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
-
- You may get a message telling you that libmodphp4.a is out of date.
- If so, go to the src/modules/php4 directory inside your apache
- source directory and run this command:
-
- ranlib libmodphp4.a
-
- Then go back to the root of the apache source directory and run the
- above configure command again. That'll bring the link table up to
- date.
-
-9. make
-
-10. make install
-
-11. copy and rename the php.ini-dist file to your "bin" directory from your
- PHP 4 source directory:
- cp php.ini-dist /usr/local/bin/php.ini
-
- or (if your don't have a local directory)
-
- cp php.ini-dist /usr/bin/php.ini
+./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
</div>
]]>
- </screen>
- </example>
+ </programlisting>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ àí àúä øåöä ùäîäãø éáöò àåôèéîéæöéä, àúä úæã÷÷ ìäåñéó âí àú äùåøä
+ äáàä:
+ <programlisting role="shell">
+<![CDATA[
+<div dir="ltr">
+setenv OPTIM=-O2
+</div>
+]]>
+ </programlisting>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ ìàçø îëï, ìê àì ñôøééú äî÷åø ùì PHP 4 åäâãø àåúä.
+ <programlisting role="shell">
+<![CDATA[
+<div dir="ltr">
+./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/share/man \
+ --with-xml \
+ --with-apache=/src/apache_1.3.12
+</div>
+]]>
+ </programlisting>
+ àí àúä øåöä ìäùúîù áúåñôåú (MySQL, GD, åëãåîä), úååãà ëé äåñôú àåúí
+ ëàï. ìäðçééú <option role="configure">--with-apache</option>,
+ äåñó àú äðúéá ùì ñôøééú äî÷åø ùì Apache, ìãåâîà
+ <filename class="directory">/src/apache_1.3.12</filename>.
+ </para>
+ </listitem>
+ <listitem>
+ <simpara>
+ ä÷ìã <command>make</command> å- <command>make install</command>.
+ æä éåñéó ñôøééä äî÷åø ùì Apache ùìê úçú
+ <filename class="directory">src/modules/php4</filename>.
+ </simpara>
+ </listitem>
+ <listitem>
+ <para>
+ òëùéå, äâãø îçãù àú Apache ìäáðåú òí PHP 4.
+ <programlisting role="shell">
+<![CDATA[
+<div dir="ltr">
+./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
+</div>
+]]>
+ </programlisting>
+ ééúëï åú÷áì äåãòä äàåîøú ìê ù- libmodphp4.a îéåùï. àí æä ÷åøä,
+ ìê àì ñôøééú <filename class="directory">src/modules/php4</filename>
+ äðîöàú áúåê ñôøééú äî÷åø ùì Apache ùìê åäøõ àú äô÷åãä äáàä:
+ <command>ranlib libmodphp4.a</command>. àæ ìê áçæøä àì ñôøééú äî÷åø
+ ùì Apache ùìê åäøõ àú ô÷åãú <command>configure</command> ùîòìä ùåá.
+ æä éáéà àú èáìú ä÷éùåøéí äîòåãëðú. äøõ àú
+ <command>make</command> åàú <command>make install</command> ùåá.
+ </para>
+ </listitem>
+ <listitem>
+ <simpara>
+ äòú÷ åùðä àú ùîå ùì ÷åáõ <filename>php.ini-dist</filename> àì ñôøééú
+ <filename class="directory">bin</filename> îñôøééú äî÷åø ùì PHP 4
+ ùìê:
+ <userinput>cp php.ini-dist /usr/local/bin/php.ini</userinput>
+ àå (àí àéï ìê ñôøééä î÷åîéú):
+ <userinput>cp php.ini-dist /usr/bin/php.ini</userinput>.
+ </simpara>
+ </listitem>
+ </orderedlist>
+ </para>
+ </formalpara>
+ <!--
<simpara>
- ãåâîàåú àçøåú áùáéì
- ì÷åç Mac OS X
- å-
- ùøú Mac OS X
- æîéðéí á- Stepwise.
+ 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>
+ -->
+
</sect2>
<sect2 id="install.macosx.client">
- <title>÷éîôåì (Compiling) òáåø ì÷åç MacOS X</title>
+ <title>äéãåø òáåø ì÷åç MacOS X</title>
<simpara>
èéôéí àìå ñåô÷å áàãéáåú òì éãé <ulink url="&url.macosx;">Marc Liyanage</ulink>.
</simpara>
<simpara>
- äîåãåì ùì PHP ìùøú Apache ëìåì á- Mac OS X.
- äãåâîà äáàä ëåììú úîéëä ìùøú ùì MySQL å- PostgreSQL.
- </simpara>
<simpara>
äòøä: éäéä æäéø áòú ôòåìä æå, àúä éëåì ìãôå÷ àú ùøú ä- Apache ùìê!
</simpara>