cvs: phpdoc /en/install/macos client.xml
| From: | Daniel P. Brown | Date: | Mon, 14 Jul 2008 17:29:16 +0000 |
| Subject: | cvs: phpdoc /en/install/macos client.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1866@lists.php.net to get a copy of this message | ||
danbrown Mon Jul 14 17:29:16 2008 UTC
Modified files:
/phpdoc/en/install/macos client.xml
Log:
Updated MacOS installation instructions and links. Upped from PHP4 to PHP5. Addresses bugs that
have been around since 2004, including (most recently) bug #32691 and user note #84401.
http://cvs.php.net/viewvc.cgi/phpdoc/en/install/macos/client.xml?r1=1.7&r2=1.8&diff_format=u
Index: phpdoc/en/install/macos/client.xml
diff -u phpdoc/en/install/macos/client.xml:1.7 phpdoc/en/install/macos/client.xml:1.8
--- phpdoc/en/install/macos/client.xml:1.7 Wed Jun 20 22:24:11 2007
+++ phpdoc/en/install/macos/client.xml Mon Jul 14 17:29:16 2008
@@ -1,75 +1,62 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<sect1 xml:id="install.macosx.client" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
- <title>Compiling for MacOS X Client</title>
-
- <!-- TODO: verify these instructions (the wget URL below does not seem to work for me)
- Goba - June 04. 2004. -->
-
+ <title>Installing for Apache on MacOS X Client</title>
<simpara>
The following instructions will help you install a PHP module for the Apache
- web server included in MacOS X. This version includes support for the MySQL
- and PostgreSQL databases. These instructions are graciously provided by
+ web server included in MacOS X using the MacOS GUI. This version includes
+ MySQL, PostgreSQL, and iODBC database support, cURL, GD, PDFLib, LDAP, and
+ more. These instructions are graciously provided by
<link xlink:href="&url.macosx;">Marc Liyanage</link>.
</simpara>
<warning>
<para>
- Be careful when you do this, you could screw up your Apache web server!
+ Be sure you know what you're doing before advancing beyond this point!
+ You can cause irreparable harm to your Apache installation otherwise.
</para>
</warning>
+ <note>
+ <para>
+ These instructions will only work with the original Apache web server as
+ shipped by Apple. If you re-built or upgraded your Apache, you will have
+ to build your own PHP module.
+ </para>
+ </note>
<para>
- Do this to install:
+ To install:
<orderedlist>
<listitem>
<simpara>
- Open a terminal window.
+ For Apache 1.3, download:
+ <userinput>http://www2.entropy.ch/download/entropy-php-5.2.4-1.tar.gz</userinput>
</simpara>
</listitem>
<listitem>
<simpara>
- Type
- <userinput>wget http://www.diax.ch/users/liyanage/software/macosx/libphp4.so.gz</userinput>,
- wait for the download to finish.
+ For Apache 2, download:
+ <userinput>wget
+ http://www2.entropy.ch/download/entropy-php-5.2.4-1-apache2.tar.gz</userinput>
</simpara>
- </listitem>
<listitem>
- <simpara>
- Type <userinput>gunzip libphp4.so.gz</userinput>.
- </simpara>
- </listitem>
<listitem>
<simpara>
- Type <userinput>sudo apxs -i -a -n php4 libphp4.so</userinput>
+ Unpack the compressed .tar.gz file, but DO NOT USE StuffIt Expander.
+ Instead, use Apple's BOMArchiveHelper or the command line.
</simpara>
</listitem>
<listitem>
- <para>
- Now type <userinput>sudo open -a TextEdit /etc/httpd/httpd.conf</userinput>.
- TextEdit will open with the web server configuration file. Locate these
- two lines towards the end of the file: (Use the Find command)
- <programlisting role="apache">
-<![CDATA[
-#AddType application/x-httpd-php .php
-#AddType application/x-httpd-php-source .phps
-]]>
- </programlisting>
- Remove the two hash marks (<literal>#</literal>), then save the file and
- quit TextEdit.
- </para>
- </listitem>
- <listitem>
<simpara>
- Finally, type <userinput>sudo apachectl graceful</userinput> to restart
- the web server.
+ Double-click the installer package and follow the directions of the
+ installer application.
</simpara>
</listitem>
</orderedlist>
</para>
<para>
- PHP should now be up and running. You can test it by dropping a file into
- your <filename class="directory">Sites</filename> folder which is called
- <filename>test.php</filename>. Into that file, write this line:
- <literal><?php phpinfo() ?></literal>.
+ That's all! PHP should now be up and running. You can test it by dropping
+ a file named <filename>test.php</filename> into your
+ <filename class="directory">Sites</filename> folder in your home
directory.
+ Into that file, write this line: <literal><?php phpinfo()
?></literal>.
</para>
<para>
Now open up <literal>127.0.0.1/~your_username/test.php</literal> in your web