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/migration5.configuration.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/migration5.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'migration5.configuration.php',
   
1 => 'Migrating Configuration Files',
  ),
 
'up' =>
  array (
   
0 => 'migration5.php',
   
1 => 'Migrating from PHP 4 to PHP 5.0.x',
  ),
 
'prev' =>
  array (
   
0 => 'migration5.cli-cgi.php',
   
1 => 'CLI and CGI',
  ),
 
'next' =>
  array (
   
0 => 'migration5.functions.php',
   
1 => 'New Functions',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="migration5.configuration" class="section">
   <h2 class="title">Migrating Configuration Files</h2>
   <p class="para">
    Since the ISAPI modules changed their names, from php4xxx to php5xxx, you
    need to make some changes in the configuration files. There were also
    changes in the CLI and CGI filenames. Please refer to the <a href="migration5.cli-cgi.php" class="link">corresponding section</a> for more
    information.
   </p>
   <p class="para">
    Migrating the Apache configuration is extremely easy. See the example below
    to check the change you need to do:
    </p><div class="example">
     <p><b>Example #1 Migrating Apache configuration files for PHP 5</b></p>
     <div class="example-contents programlisting">
<div class="apache-confcode"><pre class="apache-confcode"># change this line:   
LoadModule php4_module /php/sapi/php4apache2.dll

# with this one:
LoadModule php5_module /php/php5apache2.dll</pre>
</div>
     </div>

    </div><p>
   </p>
   <p class="para">
    If your web server is running PHP in CGI mode, you should note that the
    CGI version has changed its name from <var class="filename">php.exe</var> to
    <var class="filename">php-cgi.exe</var>.
    In Apache, you should do something like this:
    </p><div class="example">
     <p><b>Example #2 Migrating Apache configuration files for PHP 5, CGI mode</b></p>
     <div class="example-contents programlisting">
<div class="apache-confcode"><pre class="apache-confcode"># change this line:   
Action application/x-httpd-php &quot;/php/php.exe&quot;

# with this one:
Action application/x-httpd-php &quot;/php/php-cgi.exe&quot;</pre>
</div>
     </div>

    </div><p>
   </p>
   <p class="para">
    In other web servers you need to change either the CGI or the ISAPI module
    filenames.
   </p>
  </div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites