Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 9227

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Migrating Configuration Files</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration5.cli-cgi.html">CLI and CGI</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration5.functions.html">New Functions</a></div>
 <div class="up"><a href="migration5.html">Migrating from PHP 4 to PHP 5.0.x</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><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.html" 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:
    <div class="example" id="example-5621">
     <p><strong>Example #1 Migrating Apache configuration files for PHP 5</strong></p>
     <div class="example-contents">
<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 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:
    <div class="example" id="example-5622">
     <p><strong>Example #2 Migrating Apache configuration files for PHP 5, CGI mode</strong></p>
     <div class="example-contents">
<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 class="para">
    In other web servers you need to change either the CGI or the ISAPI module
    filenames.
   </p>
  </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration5.cli-cgi.html">CLI and CGI</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration5.functions.html">New Functions</a></div>
 <div class="up"><a href="migration5.html">Migrating from PHP 4 to PHP 5.0.x</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>