mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Added macos client's section.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@45585 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
ccd7665575
commit
c0ba529712
1 changed files with 63 additions and 2 deletions
|
@ -376,7 +376,7 @@ $ php4-enable
|
|||
<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 @@ $ php4-enable
|
|||
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>
|
||||
|
@ -479,6 +478,68 @@ $ php4-enable
|
|||
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>
|
||||
|
||||
<sect1 id="install.configure">
|
||||
|
|
Loading…
Reference in a new issue