install/unix/apache2.xml
a89c6d71c7b65e3de84f26230fbf72c9b8948adf
...
...
@@ -29,11 +29,12 @@
29
29
</para>
30
30

31
31
<para>
32
-
There are currently two versions of Apache 2.x - there's 2.0 and 2.2.
33
-
While there are various reasons for choosing each, 2.2 is the current
32
+
There are currently two versions of Apache 2.x - there's 2.4 and 2.2.
33
+
While there are various reasons for choosing each, 2.4 is the current
34
34
latest version, and the one that is recommended, if that option is
35
35
available to you. However, the instructions here will work for either
36
-
2.0 or 2.2.
36
+
2.4 or 2.2. Note that Apache httpd 2.2 is officially End Of Life,
37
+
and no new development or patches are being issued for it.
37
38
</para>
38
39

39
40
<orderedlist>
...
...
@@ -44,8 +45,7 @@
44
45
<informalexample>
45
46
<screen>
46
47
<![CDATA[
47
-
gzip -d httpd-2_x_NN.tar.gz
48
-
tar -xf httpd-2_x_NN.tar
48
+
tar -xzf httpd-2.x.NN.tar.gz
49
49
]]>
50
50
</screen>
51
51
</informalexample>
...
...
@@ -57,8 +57,7 @@ tar -xf httpd-2_x_NN.tar
57
57
<informalexample>
58
58
<screen>
59
59
<![CDATA[
60
-
gunzip php-NN.tar.gz
61
-
tar -xf php-NN.tar
60
+
tar -xzf php-NN.tar.gz
62
61
]]>
63
62
</screen>
64
63
</informalexample>
...
...
@@ -128,7 +127,7 @@ apxs to apxs2.
128
127
<screen>
129
128
<![CDATA[
130
129
cd ../php-NN
131
-
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
130
+
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-pdo-mysql
132
131
make
133
132
make install
134
133
]]>
...
...
@@ -178,38 +177,38 @@ cp php.ini-development /usr/local/lib/php.ini
178
177

179
178
<listitem>
180
179

181
-
<para>
182
-
Edit your httpd.conf to load the PHP module. The path on the right hand
183
-
side of the LoadModule statement must point to the path of the PHP
184
-
module on your system. The make install from above may have already
185
-
added this for you, but be sure to check.
186
-
</para>
180
+
<para>
181
+
Edit your httpd.conf to load the PHP module. The path on the right hand
182
+
side of the LoadModule statement must point to the path of the PHP
183
+
module on your system. The make install from above may have already
184
+
added this for you, but be sure to check.
185
+
</para>
187
186

188
-
<informalexample>
187
+
<informalexample>
189
188
<para>
190
-
For PHP 7:
189
+
For PHP 8:
191
190
</para>
192
191
<programlisting role="apache-conf">
193
192
<![CDATA[
194
-
LoadModule php7_module modules/libphp7.so
193
+
LoadModule php_module modules/libphp.so
195
194
]]>
196
-
</programlisting>
195
+
</programlisting>
197
196
</informalexample>
198
197

199
-
<informalexample>
198
+
<informalexample>
200
199
<para>
201
-
For PHP 5:
200
+
For PHP 7:
202
201
</para>
203
202
<programlisting role="apache-conf">
204
203
<![CDATA[
205
-
LoadModule php5_module modules/libphp5.so
204
+
LoadModule php7_module modules/libphp7.so
206
205
]]>
207
206
</programlisting>
208
-
</informalexample>
207
+
</informalexample>
209
208

210
-
</listitem>
209
+
</listitem>
211
210

212
-
<listitem>
211
+
<listitem>
213
212

214
213
<para>
215
214
Tell Apache to parse certain extensions as PHP. For example, let's have
...
...
@@ -347,7 +346,7 @@ service httpd restart
347
346
<note>
348
347
<para>
349
348
To build a multithreaded version of Apache, the target system must support threads.
350
-
In this case, PHP should also be built with experimental
349
+
In this case, PHP should also be built with
351
350
Zend Thread Safety (ZTS). Under this configuration, not all extensions will be available.
352
351
The recommended setup is to build Apache with the default
353
352
<filename>prefork</filename> MPM-Module.
354
353