How to Remove OpCache from Your cPanel Server Using EasyApache 4 Make it Rain Paper

  • EasyApache 4, OpCache, PHP
  • 0

Step-by-Step Instructions for Disabling OpCache in WHM

To disable the OpCache PHP extension from your cPanel & WHM server, follow these steps. This process is suitable for VPS and dedicated server administrators.

Disclaimer: Before removing OpCache:

  • Ensure you have backed up your server configuration and files.
  • Verify that your PHP applications do not rely on OpCache, as this change could affect performance.
  • Schedule this update during a maintenance window to prevent downtime for active users.

Log into WHM as the Root User

- Access your WHM interface by navigating to https://$hostname|$serverip:2087 using your web browser.
- Enter your root username and password. WHM requires root access to perform changes on server-wide configurations, such as modifying PHP modules.

Access EasyApache 4

  • In the WHM dashboard, locate the search bar at the top-left.
  • Type "EasyApache 4" and select it from the search results. This interface allows you to configure and update Apache and PHP packages.

Customize PHP Extensions

  • In the EasyApache 4 interface, look for "Currently Installed Packages" and click on "Customize".
  • From the customization options on the left, select "PHP Extensions".

Search for and Remove OpCache

  • In the list of PHP extensions, use the search bar to find “OpCache.”
  • Once located, uncheck the box next to the OpCache extension to mark it for removal.

Review and Apply Changes

  • After unchecking OpCache, navigate to the "Review" section in EasyApache.
  • Double-check that OpCache is marked for removal and confirm by clicking on "Provision" to apply the changes.

Confirm Removal

  • After provisioning, verify OpCache has been removed. You can do this by checking the PHP info for any remaining OpCache entries.
  • If successfully removed, OpCache-related configurations should no longer be listed.

Once completed, OpCache will be removed from your server. Make sure to test your PHP-based sites to confirm they operate as expected after the extension's removal.


Did this answer help?

« Back