Skip to content
Want to get Premium Web Hosting only at 45₹/Month Signup Now!

How to Enable MongoDB Addon in cPanel

MongoDB is a NoSQL database widely used in modern web apps. If you’re hosting with us, you can easily enable the MongoDB addon in your cPanel using the CloudLinux PHP Selector.

Follow this step-by-step guide:


Step 1: Switch to CloudLinux PHP Selector

MongoDB works only with the CloudLinux PHP Selector, not with MultiPHP Manager.

  1. Log in to your cPanel account.
  2. Switch your primary PHP version to CloudLinux PHP Selector.

📖 For detailed instructions, check this guide:
👉 How to Switch from MultiPHP Manager to CloudLinux PHP Selector


Step 2: Open the PHP Selector

  1. In cPanel, scroll to the Software section.
  2. Click Select PHP Version.
How to Enable MongoDB Addon in cPanel

Step 3: Choose the PHP Version

  1. In the PHP Selector, you’ll see your current PHP version.
  2. Select the required PHP version (make sure it matches your app requirements).
  3. Click Set as Current.

Step 4: Enable MongoDB Extension

  1. Below the PHP version, you’ll see a list of available PHP extensions.
  2. Scroll and find mongodb.
  3. Tick the checkbox next to it to enable.
  4. Click Save (if needed).

Step 5: Verify MongoDB is Enabled

Method 1: Check in PHP Selector

Go back to Select PHP Version – if mongodb remains ticked, it’s enabled.

Method 2: Using phpinfo()

  1. Create a file phpinfo.php in your public_html folder with this code: <?php phpinfo(); ?>
  2. Open it in your browser (e.g., https://yourdomain.com/phpinfo.php).
  3. Search for mongodb. If it appears, the addon is active.

✅ Summary

  • Switch from MultiPHP ManagerCloudLinux PHP Selector.
  • Go to Select PHP Version.
  • Tick mongodb and save.
  • Verify using PHP Selector or phpinfo().

Your MongoDB addon is now successfully enabled in cPanel.


⚡ Pro Tip: Always make sure your application is compatible with the PHP version you choose before enabling extensions.

Was this article helpful?
YesNo
Back To Top