PHP OPcode caching Not enabled PHP OPcode caching can improve your site's performance considerably. It is highly recommended to have OPcache installed on your server.

PHP OPcode caching Not enabled  PHP OPcode caching can improve your site's performance considerably. It is highly recommended to have OPcache installed on your server.


PHP                      Not enabled
OPcode 
caching      PHP OPcode caching can improve your site's performance considerably. It is highly 
                   recommended to have OPcache installed on your server.



Opcache introduced in PHP 5.5.0 is a powerful PHP extension built in with PHP use to enhance PHP performance it boost overall application performance. It is available as an extension.

Process to install and enable PHP OPcode caching. 

[root@techitadmin ~]# yum install php-opcache

Check the status after installing it. 

[root@techitadmin ~]# php -v
PHP 7.1.25 (cli) (built: Dec  8 2018 13:52:58) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.1.25, Copyright (c) 1999-2018, by Zend Technologies

[root@techitadmin ~]#

Make sure extensions are enable.. 
# vi /etc/php.d/10-opcache.ini 

opcache.enable_cli=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1

[root@techitadmin modules]# systemctl restart httpd.service

then refresh your page 









Previous Post
Next Post
Related Posts

0 Comments: