Improve Php Performance in Centos By using Opcache

  1. yum install php-opcache
  2. run php -v to ensure php has this extension, will show:
  1. vi /etc/php.d/10-opcache.ini
  2. enable all of these by uncomment them:
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

--

--

--

I am a Backend Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

An Interesting Network setup which will be able to ping GOOGLE but not FACEBOOK over same system

Integrating Travis CI with Android Project (API Level 30)

TERRAFORM + GIT + LINUX

How I became a programmer with the #100DaysofCode challenge

Tree: Huffman Decoding

Architecting a Successful SaaS

Using AWS Simple Systems Manager (and Lambda) to replace Cron in an EC2 Auto Scaling Group

Progress on the mainnet launch sequence

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Lim Sing

Lim Sing

I am a Backend Developer

More from Medium

pre_fetch_count in common cases in PHP

Real-Time Private Chat Application using PHP Ratchet Websockets

Configuring Laravel 7 For Use With PhpRedis using Homestead

Understanding Laravel’s Real-Time Facades — How it works under the hood