Create MongoDB Databases in Control Web Panel (CWP)

MongoDB Databases in Control Web Panel (CWP)

MongoDB is a non-relational database management system (DBMS) that is great for processing unstructured data at blazing fast speeds. Apps that use MongoDB NoSQL solutions include the Rocket.Chat online communications platform and ApostropheCMS.

Below we’ll cover how to install and manage MongoDB databases in Control Web Panel (CWP).

Install MongoDB in Control Web Panel

An administrator will need to install MongoDB before end users can manage databases.

  1. Log into CWP as an administrator.
  2. On the left, search for and select MongoDB Manager.
  3. At the center you’ll see a mostly blank section reading “Mongo DB not installed.” Click Select version to install and choose which MongoDB version to install on your CWP server. Select Continue to confirm the installation process. The installation may take a minute.
    Mongo DB not installed

After the page refreshes, you’ll see three system databases (“admin,” “config,” and “local”). On the right-hand side you’ll see the MongoDB version installed and service status (should be “Running”). Now you can create MongoDB databases and users.

MongoDB Manager in Control Web Panel (CWP)

Create MongoDB Databases in CWP

Below we’ll cover how to create a MongoDB database and assign it to a CWP end user.

Regulars users cannot create MongoDB databases.

  1. Select Add new database in the upper-right corner.
  2. Assign the database to a CWP user account. Create a new user first if necessary.
    Create MongoDB database in Control Web Panel (CWP)
  3. Type a name for the new database. The full database name will include the database user as a prefix (e.g. “user_joo919”).
  4. Select Save. The main page will now show your new database with options to add MongoDB users or delete the database.
  5. (Optional) If you want to allow regular users to manage their MongoDB databases, select Options at the top. Then, check the box for “MongoDB available in user panel.” You can enable MongoDB access for all accounts or specific ones. Once you’ve made your decision, select Save options. CWP users currently logged in may need to refresh their browser page to see the new section.
    MongoDB available in user panel checkbox

Manage MongoDB Server Access

Now that you know how to create MongoDB databases on your CWP server, there are some related tasks you should be familiar with.

Create MongoDB Users in CWP

CWP admin and regular users can create MongoDB users. Regular users can access this  function from the left-side panel by selecting Databases > Mongo Database.

  1. To the right of a MongoDB database, select the first (user) icon from the “Actions” column.
    Add users to a CWP PostgreSQL database
  2. If the CWP user already has MongoDB users, you can select Add existing user to add them. Otherwise, type a username and user role (“ReadOnly” or “ReadWrite”). Then type a strong password for the user.
  3. Select Save. The main page will list the new user in the “Users” column with options to change the password or remove the user.

CWP Admin and regular users can also update MongoDB user passwords from the “Users” tab.

Remote MongoDB Database Management

MongoDB listening port and bind IP address in CWP

If your team requires remote database access for MongoDB desktop clients such as Compass, admin users can change remote database connection settings from MongoDB Manager > Settings.

The default listening port is 27017.

The default listening address is “127.0.0.1.” 

Don’t forget to select Save settings after making any changes on this page. 

Let us know if you have any questions about managing databases on your CWP server.

No matter if you’re a developer, system administrator, or simply a fan of SSH and command line, InMotion’s Cloud VPS plans provide a fast, scalable environment that is budget-friendly.
J
Jacqueem Content Writer I

Technical writer focused on cybersecurity and musicianship.

More Articles by Jacqueem

Comments

It looks like this article doesn't have any comments yet - you can be the first. If you have any comments or questions, start the conversation!

Was this article helpful? Let us know!