-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfiguration.html
100 lines (80 loc) · 4.07 KB
/
configuration.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Migrating Configuration Files in PHP 5.0</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Lito && Óscar Otero">
<meta name="title" content="Migrating Configuration Files in PHP 5.0">
<meta property="og:type" content="website">
<meta property="og:url" content="https://eusonlito.github.io/php-changes-cheatsheet">
<meta property="og:title" content="Migrating Configuration Files in PHP 5.0">
<meta property="og:image" content="./images/social.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://eusonlito.github.io/php-changes-cheatsheet">
<meta name="twitter:site" content="@lito_ordes">
<meta name="twitter:creator" content="@lito_ordes">
<meta name="twitter:title" content="Migrating Configuration Files in PHP 5.0">
<meta name="twitter:image" content="./images/social.png">
<link href="//fonts.googleapis.com/css?family=Fira+Sans|Droid+Sans|Source+Sans+Pro" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="./phpnet.css?1744308666" type="text/css" media="screen">
<link rel="stylesheet" href="./styles.css?1744308666" type="text/css" media="screen">
<link rel="icon" type="image/png" sizes="32x32" href="./favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="./favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png">
<link rel="icon" href="./favicon.ico" type="image/x-icon">
<meta name="theme-color" content="#ffffff">
</head>
<body class="docs">
<section class="info-wrapper">
<nav id="head-nav" class="navbar">
<h1><a href="index.html"> Migrating Configuration Files in PHP 5.0</a></h1>
</nav>
<main class="info-main">
<article id="layout-content" class="info-version">
<header class="info-version-header">
<h1><a href="https://www.php.net/manual/en/migration5.configuration.php" target="_blank">PHP 5.0</a></h1>
</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 target="_blank" href="https://www.php.net/manual/en/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:
</p><div class="example" id="example-6944">
<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 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" id="example-6945">
<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 "/php/php.exe"
# with this one:
Action application/x-httpd-php "/php/php-cgi.exe"</pre>
</div>
</div>
</div>
<p class="para">
In other web servers you need to change either the CGI or the ISAPI module
filenames.
</p>
</div></article> </main>
</section> </body>
</html>