Open In App

How to Install MongoDB on cPanel?

Improve
Improve
Like Article
Like
Save
Share
Report

cPanel is a web hosting management system. cPanel provides a control panel that provides a nice user interface. It is the most reliable site management system. Moreover, cPanel provides a dashboard where some web date files and MySQL files are present to help others out. MongoDB is a database and it verifies the document databases. It is widely used for its flexibility and scalability. MongoDB provides a cloud and server-based database management system. Also, MongoDB provides some extra plugins to use MongoDB in different aspects also. Like MongoDB provides PHP driver plugins. For installing MongoDB in cPanel, there must be PHP installed in the machine previously. Otherwise, it will not install. Also, in the machine cPanel must also be installed.

Features:

  • MongoDB can store documents in a flexible model. So, these documents’ data structures can be changed further in the future.
  • MongoDB is distributed in nature. The distributed databases are high available which makes them easy to handle and use.
  • As MongoDB is open-source in nature, it is free to use & easy to install.

Installing MongoDB in Cpanel

Step 1: At first, the cPanel Terminal should be opened. There according to the PHP installed in the system, the proper command should be used. Then wait for some time. For downloading purposes, it will take some time. The proper command can be chosen from below.

For PHP 5.5:   /opt/cpanel/ea-php55/root/usr/bin/pecl install mongo
 

For PHP 5.6:   /opt/cpanel/ea-php56/root/usr/bin/pecl install mongo
 

For PHP 7.0:   /opt/cpanel/ea-php70/root/usr/bin/pecl install mongodb
 

For PHP 7.1:   /opt/cpanel/ea-php71/root/usr/bin/pecl install mongodb

Open-Cpanel-terminal

 

Step 2: Then during the installation, it will ask for MongoDB Enterprise Authentication. But it will be advisable to go with the default one which is ‘no’. Just press Enter for further process. Wait for another time. It will take some time. As it is going to install & configure it in cPanel.

Ask-for-MongoDB-Enterprise-Authentication

 

Step 3: After waiting some time, the message will be displayed as ‘Build Process Completed successfully’. So, the configuration & installation is completed successfully.

Build-Process-Completed-successfully

 

Step 4: Then the below-mentioned command should be run. According to the PHP version, the proper command should be run. Otherwise, it will prompt an error. Hence, the whole process is completed successfully.

For PHP 5.5:   /opt/cpanel/ea-php55/root/usr/bin/pecl list

For PHP 5.6:   /opt/cpanel/ea-php56/root/usr/bin/pecl list

For PHP 7.0:   /opt/cpanel/ea-php70/root/usr/bin/pecl list

For PHP 7.1:   /opt/cpanel/ea-php71/root/usr/bin/pecl list

Verify-version

 


Last Updated : 13 Apr, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads