dams Thu Apr 19 23:50:19 2001 EDT
Modified files:
/phpdoc/en/chapters install.xml
Log:
Added macos client's section.
Index: phpdoc/en/chapters/install.xml
diff -u phpdoc/en/chapters/install.xml:1.51 phpdoc/en/chapters/install.xml:1.52
--- phpdoc/en/chapters/install.xml:1.51 Wed Apr 4 23:49:34 2001
+++ phpdoc/en/chapters/install.xml Thu Apr 19 23:50:19 2001
@@ -376,7 +376,7 @@
<title>Unix/Mac OS X installs</title>
<para>
This section contains notes and hints specific to installing
- PHP on Mac OS X.
+ PHP on Mac OS X Server.
</para>
<sect2 id="install.macosx.packages">
<title>Using Packages</title>
@@ -470,7 +470,6 @@
cp php.ini-dist /usr/bin/php.ini
</programlisting>
</example>
-
<simpara>
Other examples for
<ulink url="&url.stepwise.macosx-client;">Mac OS X client</ulink>
@@ -478,6 +477,68 @@
<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 for MacOS X client</title>
+ <simpara>
+ Those tips are graciously provided by Marc Liyanage :
+ <link ulink"http://www.entropy.ch/software/macosx">future site</link>
+ (<link ulink="">old site</link>).
+ </simpara>
+ <simpara>
+ The PHP module for the Apache web server included in Mac OS X.
+ This version includes support for the MySQL and PostgreSQL databases.
+ </simpara>
+ <simpara>
+ NOTE: Be careful when you do this, you could screw up your Apache web server!
+ </simpara>
+ <para>
+ Do this to install:
+ <itemizedlist>
+ <listitem>
+ <simpara>
+ 1. Open a terminal window
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ 2. type "wget http://www.access.ch/ml/software/macosx/libphp4.so.gz",
+ wait for download to finish
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ 3. type "gunzip libphp4.so.gz"
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ 4. type "sudo apxs -i -a -n php4 libphp4.so"
+ </simpara>
+ </listitem>
+ <listitem>
+ </itemizedlist>
+ Now type "<literal>sudo open -a TextEdit /etc/httpd/httpd.conf</literal>"
+ TextEdit will open with the web server configuration file. Locate these
+ two lines towards the end of the file: (Use the Find command)
+ <programlisting>
+ * #AddType application/x-httpd-php .php
+ * #AddType application/x-httpd-php-source .phps
+ </programlisting>
+ Remove the two hash marks (#), then save the file and quit TextEdit.
+ </para>
+ <para>
+ Finally, type "<literal>sudo apachectl graceful</literal>" to restart the web
+server.
+ </para>
+ <para>
+ PHP should now be up and running. You can test it by dropping a file into
+ your "Sites" folder which is called "test.php". Into that file, write this
+ line: "<?php phpinfo() ?>".
+ </para>
+ <para>
+ Now open up 127.0.0.1/~your_username/test.php in your web browser.
+ You should see a status table with information about the PHP module.
+ </para>
</sect2>
</sect1>