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

How to Upgrade PHP Version in cPanel/WHM Server?

Following article will assist you to upgrade PHP version in cPanel/WHM server. This article is...

How to install Dotnet Core on Centos 7 ?

Dotnet Core is now available with the Linux OS. Following are the steps to install Dotnet Core on...

How to Switch Web Server from Apache to LiteSpeed on WHM?

Apache and LiteSpeed both are the WebServers. Apache is older and popular compared to LiteSpeed....

Difference Between su and sudo and How to Configure sudo in Linux VPS.

As we know Linux provides much better security. You can set user management policy and user...

How to use chmod to change file permission?

In this article, we will describe how to use the chmod command to modify file permission in Linux...

  • 0 Users Found This Useful

Was this answer helpful?