reference/opcache/configure.xml
56f49b5b99e89bb806acc9721651ccb4dbe3b5bd
...
...
@@ -4,8 +4,20 @@
4
4
&reftitle.install;
5
5

6
6
<para>
7
-
The process of installing OPcache varies depending on which version of PHP
8
-
you're running. Please refer to the appropriate section below.
7
+
OPcache can only be compiled as a shared extension. If you have
8
+
disabled the building of default extensions with
9
+
<option role="configure">--disable-all</option>, you must compile PHP with
10
+
the <option role="configure">--enable-opcache</option> option for OPcache
11
+
to be available.
12
+
</para>
13
+
14
+
<para>
15
+
Once compiled, you can use the
16
+
<link linkend="ini.zend-extension">zend_extension</link> configuration
17
+
directive to load the OPcache extension into PHP. This can be done with
18
+
<literal>zend_extension=/full/path/to/opcache.so</literal> on non-Windows
19
+
platforms, and <literal>zend_extension=C:\path\to\php_opcache.dll</literal>
20
+
on Windows.
9
21
</para>
10
22

11
23
<note>
...
...
@@ -16,44 +28,6 @@
16
28
</para>
17
29
</note>
18
30

19
-
<sect2 xml:id="opcache.installation.bundled">
20
-
<title>PHP 5.5.0 and later</title>
21
-

22
-
<para>
23
-
OPcache can only be compiled as a shared extension. If you have
24
-
disabled the building of default extensions with
25
-
<option role="configure">--disable-all</option>, you must compile PHP with
26
-
the <option role="configure">--enable-opcache</option> option for OPcache
27
-
to be available.
28
-
</para>
29
-
30
-
<para>
31
-
Once compiled, you can use the
32
-
<link linkend="ini.zend-extension">zend_extension</link> configuration
33
-
directive to load the OPcache extension into PHP. This can be done with
34
-
<literal>zend_extension=/full/path/to/opcache.so</literal> on non-Windows
35
-
platforms, and <literal>zend_extension=C:\path\to\php_opcache.dll</literal>
36
-
on Windows.
37
-
</para>
38
-
</sect2>
39
-

40
-
<sect2 xml:id="opcache.installation.pecl">
41
-
<title>PHP 5.2, 5.3 and 5.4</title>
42
-

43
-
<para>
44
-
&pecl.moved;
45
-
</para>
46
-

47
-
<para>
48
-
&pecl.info;
49
-
<link xlink:href="&url.pecl.package;ZendOpcache">&url.pecl.package;ZendOpcache</link>.
50
-
</para>
51
-

52
-
<para>
53
-
&pecl.windows.download;
54
-
</para>
55
-
</sect2>
56
-

57
31
<sect2 xml:id="opcache.installation.recommended">
58
32
<title>Recommended php.ini settings</title>
59
33

...
...
@@ -69,7 +43,7 @@ opcache.memory_consumption=128
69
43
opcache.interned_strings_buffer=8
70
44
opcache.max_accelerated_files=4000
71
45
opcache.revalidate_freq=60
72
-
opcache.fast_shutdown=1
46
+
opcache.fast_shutdown=1 ; prior to PHP 7.2.0
73
47
opcache.enable_cli=1
74
48
]]>
75
49
</programlisting>
...
...
@@ -86,6 +60,12 @@ opcache.enable_cli=1
86
60
</para>
87
61

88
62
<para>
63
+
On Windows, <link linkend="ini.opcache.file-cache-fallback">opcache.file_cache_fallback</link>
64
+
should be enabled, and <link linkend="ini.opcache.file-cache">opcache.file_cache</link>
65
+
should be set to an already existing and writable directory.
66
+
</para>
67
+

68
+
<para>
89
69
A full list of configuration directives supported by OPcache
90
70
<link linkend="opcache.configuration">is also available</link>.
91
71
</para>
92
72