downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/install.macosx.client.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/install.macosx.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'install.macosx.client.php',
   
1 => 'Installing for Apache on MacOS X Client',
  ),
 
'up' =>
  array (
   
0 => 'install.macosx.php',
   
1 => 'Installation on Mac OS X',
  ),
 
'prev' =>
  array (
   
0 => 'install.macosx.server.php',
   
1 => 'Compiling for OS X Server',
  ),
 
'next' =>
  array (
   
0 => 'install.windows.php',
   
1 => 'Installation on Windows systems',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="install.macosx.client" class="sect1">
  <h2 class="title">Installing for Apache on MacOS X Client</h2>
  <p class="simpara">
   The following instructions will help you install a PHP module for the Apache
   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
   <a href="http://www.entropy.ch/software/macosx/" class="link external">&raquo; Marc Liyanage</a>.
  </p>
  <div class="warning"><b class="warning">Warning</b>
   <p class="para">
    Be sure you know what you&#039;re doing before advancing beyond this point!
    You can cause irreparable harm to your Apache installation otherwise.
   </p>
  </div>
  <blockquote><p><b class="note">Note</b>:
  
    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.
   <br />
  </p></blockquote>
  <p class="para">
   To install:
   </p><ol type="1">
    <li class="listitem">
     <span class="simpara">
      For Apache 1.3, download:
      <strong class="userinput"><code>http://www2.entropy.ch/download/entropy-php-5.2.4-1.tar.gz</code></strong>

     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      For Apache 2, download:
      <strong class="userinput"><code>wget
      http://www2.entropy.ch/download/entropy-php-5.2.4-1-apache2.tar.gz</code></strong>

     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      Unpack the compressed .tar.gz file, but DO NOT USE StuffIt Expander.
      Instead, use Apple&#039;s BOMArchiveHelper or the command line.
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      Double-click the installer package and follow the directions of the
      installer application.
     </span>
    </li>
   </ol><p>
  </p>
  <p class="para">
   That&#039;s all!  PHP should now be up and running. You can test it by dropping
   a file named <var class="filename">test.php</var> into your
   <var class="filename">Sites</var> folder in your home directory.
   Into that file, write this line: <i>&lt;?php phpinfo() ?&gt;</i>.
  </p>
  <p class="para">
   Now open up <i>127.0.0.1/~your_username/test.php</i> in your web
   browser. You should see a status table with information about the PHP module.
  </p>
 </div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites