Using Zend OPcache in PHP 5.56 on IIS

Years ago we began to use WinCache in order to double the speed of our IIS server.    While WinCache 1.35 improves the speed of IIS, Zend OPcache is now in PHP allowing an increase in speed on your PHP based webserver.

In order to speed up your IIS server with Zend OPcache, make sure you have the latest version of PHP.  Modify PHP.ini and put the following into your .ini file-

 

[ExtensionList]

zend_extension=php_opcache.dll

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

After you put the following into your PHP.ini, save the file and Stop and Start IIS.

 

There are some excellent GUI interfaces you can save as whatever.php by copying the code

hitrate two

 

https://raw.github.com/rlerdorf/opcache-status/master/opcache.php

hitrate three

 

https://raw.github.com/amnuts/opcache-gui/master/index.php

 

Our personal favorite is the Opcache Control Panel (below).

 

 

 

 

hitrate

Where to find more GUI interfaces –

https://github.com/search?q=opcache&nwo=rlerdorf%2Fopcache-status&search_target=global&ref=cmdform

 

More information from PHP.net

About TCAT Shelbyville IT Department

The Tennessee College of Applied Technology - is one of 46 institutions in the Tennessee Board of Regents System, the seventh largest system of higher education in the nation. This system comprises six universities, fourteen community colleges, and twenty-six Applied Technology Colleges.
This entry was posted in Business, Computers, Education, Information Technology, Windows and tagged , , , , , . Bookmark the permalink.

Leave a comment