How to install OPcache in cPanel/WHM?

OPcache is a PHP extension and it helps to improve the performance of your php Website. OPcache improves the PHP performance by storing compiled script byte code in shared memory. Using OPcache you will find a significant amount of improvement on website loading time. It also helps to avoid load on the server. OPcache comes as a php extension in PHP 5.5 and later versions. 

Note: Installing OPcache from the WHM panel will require rebuilding the apache. It may take a few minutes to rebuild the apache and all the website hosted on the cPanel will be down during this time. 

  1. Login to your WHM Panel.

  2. Go to software and click on EasyApache4.



  3. Click on the customize button. 



  4. Click on PHP Extensions and select the php versions on which you want to enable the OPcache. 

  5. Write OPcache in the search box and click on the Next button. 



  6. Go to Review and click on the Provision button. 



  7. You will get the below screen once it is installed completely. Click on the Done button. 



Related Articles

Fix :: SSH Error: Starting sshd: Missing privilege separation directory: /var/empty/sshd

Problem Statement Could not connect to Linux machine through SSH. Error Message While starting...

How to transfer cPanel accounts from Shared Hosting to VPS/Dedicated Server manually?

cPanel facilitates you to restore full cPanel account along with websites, email accounts, MySQL...

How to Increase Open Files Limit in Ubuntu?

You may receive a message on Linux system like "Too many open files". This mean server has...

How to Install Visual Studio Code on CentOS 7?

Visual Studio Code is a Microsoft Product and an open-source cross-platform code editor. It...

The action Install for product MySQL Server 5.7.19 failed.

You may face this error while installing MySQL 5.7 or upgrading MySQL 5.6 to 5.7. Here, is the...

  • 0 Users Found This Useful

Was this answer helpful?