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. 



  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to fix su USER Fails With "su: cannot create child process: Resource temporarily unavailable" Error in CloudLinux?

You may face the below error while switching the accounts using su command. su accutest su:...

How to Install Tomcat 7 on Centos?

Tomcat is an open-source web server that is built in Java Servlet and JavaServer Pages...

How to Setup NTP Server in CentOS?

NTP enables the automatically sync your system time with a remote server. With the help of NTP...

How to install Virtualmin / Webmin control panel in Ubuntu 18.04?

Please refer to the following steps to install Webmin/Virtualmin on Ubuntu 18.04 Let's run the...

How To Add A New IP Address In Virtualmin?

You can add an IP Address via Networking Module directly with virtualmean. To do this, you need...