During drupal 8 & 9 installation fix php opcode caching not enabled

 Opcode Caching (PHP - high CPU)

PHP out of the box is a dynamic language and can lead to heavy CPU usage on web servers. There are multiple types of opcode caching add-ons for PHP available that will convert your .php page into memory (byte code) to provide a major benefit in load time and reduced CPU usage. Each of these will require root access to install and have their own specific configurations that will need some attending before using. Once configured and enabled they can provide a substantial benefit to a slow site and greatly reduce CPU usage from PHP.



Please add this line into your "php.ini" file 

Location :  [opcache]

[opcache]

zend_extension=php_opcache.dll

;Determines if Zend OPCache in enabled

opcache.enable=1

opcache.memory_consumption=128

opcache.interned_strings_buffer=8

opcache.max_accelerated_files=1000

opcache.revalidate_freq=60



1 comment:

Inwizards Software said...

Such a great blog! I am looking for these kinds of blogs for last many days. Keep it up. Thanks for sharing it with us
web and app development company
hire xamarin developers
hire .net developers
hire android developers

Write a program in PHP to reverse a number

A number can be written in reverse order. For example 12345 = 54321 <?php   $ num = 23456;   $ revnum = 0;   while ($ num > 1)   {   $...