Difference between revisions of "Setup:Installation Guide/Advanced/Performance Optimization/PHP"

[quality revision][quality revision]
m
(Tag: 2017 source edit)
m (Text replacement - "[[en:{{PAGENAME}}]]" to "[[en:{{FULLPAGENAME}}]]")
 

Contents

opcache[edit | edit source]

Enable the Zend extension opcache in PHP. In the php.ini, we recommend the following configuration:

opcache.enable=1
opcache.memory_consumption=512
opcache.max_accelerated_files=100000
opcache.validate_timestamps=1
opcache.revalidate_freq=2
opcache.optimization_level=0x7FFF9FFF

In addition, you should include the BlueSpice configuration files ( extensions/BlueSpiceFoundation/config/*) in the Opcache blacklist (opcache.blacklist_filename). You can find more information in the official PHP documentationfor configuration.php.

zlib[edit | edit source]

Activate the extension zlib. In the php.ini we recommend the following configuration:

zlib.output_compression = On
zlib.output_compression_level = 9

You can find more information in the official PHP documentation for zlib.

{{DISPLAYTITLE:Performance Optimization: PHP}}
        
        __TOC__
        
        ==opcache==
        
        Enable the Zend extension opcache in PHP. In the php.ini, we recommend the following configuration:
        <pre>opcache.enable=1
        
        opcache.memory_consumption=512
        
        opcache.max_accelerated_files=100000
        
        opcache.validate_timestamps=1
        
        opcache.revalidate_freq=2
        
        opcache.optimization_level=0x7FFF9FFF</pre>
        
        In addition, you should include the BlueSpice configuration files (<code> extensions/BlueSpiceFoundation/config/*)</code> in the Opcache blacklist (<code>opcache.blacklist_filename</code>).
        
        You can find more information in the [http://php.net/manual/de/opcache.configuration.php official PHP documentation]for configuration.php.
        

        ==zlib==
        
        Activate the extension zlib. In the php.ini we recommend the following configuration:
        <pre>zlib.output_compression = On
        
        zlib.output_compression_level = 9</pre>
        
        You can find more information in the [http://php.net/manual/de/zlib.configuration.php official PHP documentation] for zlib.
        

        [[en:{{FULLPAGENAMEPAGENAME}}]][[de:Setup:Installationsanleitung/Kompendium/Performance-Optimierungen/PHP]]
Line 18: Line 18:
 
You can find more information in the [http://php.net/manual/de/zlib.configuration.php official PHP documentation] for zlib.
 
You can find more information in the [http://php.net/manual/de/zlib.configuration.php official PHP documentation] for zlib.
  
[[en:{{PAGENAME}}]][[de:Setup:Installationsanleitung/Kompendium/Performance-Optimierungen/PHP]]
+
[[en:{{FULLPAGENAME}}]][[de:Setup:Installationsanleitung/Kompendium/Performance-Optimierungen/PHP]]

Attachments

Discussions