Post date: Jan 2, 2015 7:38:53 PM
Edit php.ini file by adding the following line
opcache.enable=1
Next, make sure that php mod is enabled
sudo php5enmod opcache
Restart the apache
sudo service apache2 restart
The below code let can be inserted directly into php.ini
[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
opcache.enable_cli=1
; The OPcache shared memory storage size.
opcache.memory_consumption=128
; The amount of memory for interned strings in Mbytes.
;opcache.interned_strings_buffer=4
; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 100000 are allowed.
opcache.max_accelerated_files=2000
; Load opcache module
zend_extension=opcache.so