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.unix.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/install.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'install.unix.php',
   
1 => 'Installation on Unix systems',
  ),
 
'up' =>
  array (
   
0 => 'install.php',
   
1 => 'Installation and Configuration',
  ),
 
'prev' =>
  array (
   
0 => 'install.general.php',
   
1 => 'General Installation Considerations',
  ),
 
'next' =>
  array (
   
0 => 'install.unix.apache.php',
   
1 => 'Apache 1.3.x on Unix systems',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div>
   <h1>Installation on Unix systems</h1>
<h2>Table of Contents</h2><ul class="chunklist chunklist_chapter"><li><a href="install.unix.apache.php">Apache 1.3.x on Unix systems</a></li><li><a href="install.unix.apache2.php">Apache 2.x on Unix systems</a></li><li><a href="install.unix.lighttpd-14.php">Lighttpd 1.4 on Unix systems</a></li><li><a href="install.unix.caudium.php">Caudium</a></li><li><a href="install.unix.fhttpd.php">fhttpd related notes</a></li><li><a href="install.unix.sun.php">Sun, iPlanet and Netscape servers on Sun Solaris</a></li><li><a href="install.unix.commandline.php">CGI and command line setups</a></li><li><a href="install.unix.hpux.php">HP-UX specific installation notes</a></li><li><a href="install.unix.openbsd.php">OpenBSD installation notes</a></li><li><a href="install.unix.solaris.php">Solaris specific installation tips</a></li><li><a href="install.unix.debian.php">Debian GNU/Linux installation notes</a></li></ul>

   <p class="para">
    This section will guide you through the general configuration and
    installation of PHP on Unix systems. Be sure to investigate any
    sections specific to your platform or web server before you begin
    the process.
   </p>
   <p class="para">
    As our manual outlines in the <a href="install.general.php" class="link">General
    Installation Considerations</a> section, we are mainly dealing with
    web centric setups of PHP in this section, although we will cover
    setting up PHP for command line usage as well.
   </p>
   <p class="para">
    There are several ways to install PHP for the Unix platform, either
    with a compile and configure process, or through various
    pre-packaged methods. This documentation is mainly focused around
    the process of compiling and configuring PHP. Many Unix like systems
    have some sort of package installation system. This can assist in
    setting up a standard configuration, but if you need to have a
    different set of features (such as a secure server, or a different
    database driver), you may need to build PHP and/or your web server.
    If you are unfamiliar with building and compiling your own software,
    it is worth checking to see whether somebody has already built a
    packaged version of PHP with the features you need.
   </p>
   <p class="para">
    Prerequisite knowledge and software for compiling:
    </p><ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       Basic Unix skills (being able to operate &quot;make&quot; and a C
       compiler)
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       An ANSI C compiler
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       flex: Version 2.5.4
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       bison: Version 1.28 (preferred), 1.35, or 1.75
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       A web server
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       Any module specific components (such as <acronym title="Graphics Draw">GD</acronym>,
       <acronym title="Portable Document Format">PDF</acronym> libs, etc.)
      </span>
     </li>
    </ul><p>
   </p>
  
   <p class="para">
    The initial PHP setup and configuration process is controlled by the
    use of the command line options of the <strong class="command">configure</strong>
    script. You could get a list of all available options along with short
    explanations running <strong class="command">./configure --help</strong>.
    Our manual documents the different options separately. You will
    find the <a href="configure.php" class="link">core options in the appendix</a>,
    while the different extension specific options are descibed on the
    reference pages.
   </p>
   
   <p class="para">
    When PHP is configured, you are ready to build the module and/or
    executables. The command <strong class="command">make</strong> should
    take care of this. If it fails and you can&#039;t figure out why, see
    the <a href="install.problems.php" class="link">Problems section</a>.
   </p>

  
  

  



  

  



  





  

 



  

 



  

  



  

 



  
  





  





  





  
  





  
  </div>
<?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites