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 Exim error-exim dead but subsys locked

Problem Statement php mail scripts were not working in Linux VPS. Error Message exim dead but...

How to Manage Linux Cloud VPS From Client Area?

This article will assist you to manage your Linux Cloud VPS from client area (though you will...

How to remove Swap Space from Centos 7.x?

Please refer to the following steps to remove Swap space from Centos 7.x At first, check if...

How To Find Files Modified in Last 30 Days in Linux?

In Linux, we can use the find command in order to search the files across the file system. There...

Do You Offer VPS with 8 vCPU Cores?

No, we do not provide VPS with 8 vCPU cores. We provide VPS with maximum 4 vCPU cores. This is...

  • 0 Users Found This Useful

Was this answer helpful?