Connecting Moodle's BigBlueButton activity to your own server

Point Moodle's core BigBlueButton activity at a server you run by setting the API endpoint and shared secret, choosing a checksum algorithm, and testing joins and recordings before students use it.

On this page

How to connect Moodle's BigBlueButton activity to your own server

Connecting Moodle's core BigBlueButton activity to your own server is a configuration and verification task that needs no custom code. It suits a school, university or company that runs Moodle and wants class sessions to stay on servers it controls. The activity calls a BigBlueButton API endpoint for each action, such as creating a room or joining one, and every call is signed with a checksum computed from a shared secret that the server also holds. To connect it, you need two server-side values: the API endpoint of your BigBlueButton server, which is its base address, and the shared secret that the server uses to verify each request. You read both from the server you install, then enter them in Moodle's BigBlueButton settings. The method covered here is the BigBlueButton API, which is the interface Moodle's core activity already uses.

Every API call carries a checksum, and the server recomputes it from the call's parameters and the secret. A request signed with the wrong secret, or with parameters changed after signing, is refused. Confirm which checksum algorithm your BigBlueButton version accepts and which one the Moodle side sends, because a mismatch stops joins before anyone reaches a room. SHA-256 is the default, SHA-1 is kept for legacy use, and SHA-384 and SHA-512 have been available since version 2.5, according to the BigBlueButton API documentation. The secret belongs only in Moodle's server-side configuration. Never place it in a page, template or client-side script, because anyone who reads it can sign their own API calls and create or join sessions on your server.

Before you hand the activity to teachers, decide who can read the shared secret and how you will rotate it if it leaks. Then test as the people who will use it. Use a teacher account to create a session, a student account to join it, and a second browser to confirm roles, audio, slides, chat and screen sharing behave as expected. Record a short session and confirm it plays back. Check the network and server prerequisites outside Moodle first: the server must be reachable on TCP ports 80 and 443 and UDP ports 16384 to 32768, and it needs a valid hostname for SSL. The BigBlueButton install documentation also states that version 4.0 installs on Ubuntu 24.04 and does not upgrade directly from 2.6, 2.7 or 3.0, so confirm your server version with your operations team before testing.

Prerequisites for the Moodle BigBlueButton connection

Both sides of this connection have fixed requirements that must be met before any Moodle setting is changed. The BigBlueButton server needs a clean install, enough capacity and open network paths, while the Moodle site needs a runtime that its release supports. Confirm your Moodle version and the activity's exact settings against your own Moodle release before you start.

Clean BigBlueButton 4.0 install

Ubuntu 24.04 64-bit is the operating system that BigBlueButton 4.0 installs on. Direct upgrades from 2.6, 2.7 or 3.0 are not supported, so an existing server on those versions needs a fresh host and a planned move of its rooms and recordings. Record the exact server version and operating system, so your Moodle settings can be checked against the same build. The install docs describe the installer options, including whether to add Greenlight or LTI support on the same server.

BigBlueButton install docs

Server sizing and bandwidth

Plan for at least 16 GB of RAM with swap, 8 CPU cores with high single-thread performance, and 250 Mbit/s symmetrical bandwidth. Disk needs depend on recording: the install docs list 500 GB with recordings and 50 GB without. Test upload and download speeds at the site that hosts the server, since the install docs specify symmetrical capacity. Include the disk growth of recordings in your plan, because retention is a decision your institution makes before go-live.

Inbound ports for web and media

TCP ports 80 and 443 must be reachable for the web interface and secure connections. UDP ports 16384 to 32768 must also be open for audio and video media. Confirm that your firewall, cloud security group and any NAT layer forward both ranges to the BigBlueButton host. A blocked UDP range can let a join succeed while audio and video fail, so test media paths with a real student network before classes begin.

Public hostname and SSL certificate

BigBlueButton needs a valid hostname with an SSL certificate that browsers trust. The hostname becomes the server address entered in Moodle, so it must resolve from the Moodle server and from student networks. Decide it before installation, because changing it later means reconfiguring the server and the Moodle activity together. Check the certificate from outside your network, and confirm that the full certificate chain is served.

Docker and TURN services

Docker is needed for sandboxed LibreOffice document conversion, so uploaded slides and documents are processed in an isolated container on the server. A TURN server is recommended for users behind restrictive firewalls that block direct media connections. Decide early whether TURN runs on the same host or a separate one. Then test a join from a network that blocks UDP traffic, since that is the case TURN is meant to cover.

Moodle release, PHP and database

Confirm the Moodle version in use, then check the PHP and database versions that release supports. For Moodle 5.1, the release notes list 64-bit PHP 8.2 or later, with PostgreSQL 15, MySQL 8.4, MariaDB 10.11 or Microsoft SQL Server 2017 or later. From Moodle 5.1, the web server document root must point to the /public directory, or the site may show directory listings or errors. Confirm these points against the release your site runs.

Moodle 5.1 release notes

How a Moodle join reaches your BigBlueButton server

The diagram starts when a learner clicks join on a Moodle course page. The Moodle server builds the BigBlueButton API request and signs it with the shared secret, so the secret is used only on the Moodle server and never reaches the browser. The signed request travels to your BigBlueButton API endpoint over HTTPS. After that, the learner's browser connects directly to the media paths, and TURN carries traffic for learners behind restrictive firewalls. Check that the Moodle server can reach the API over HTTPS, and that learners' browsers can reach the media ports and your TURN server.

Signed join requests go to your server, and media connects from the browser.

Connecting Moodle's BigBlueButton activity: the setup sequence

This sequence connects Moodle's built-in BigBlueButton activity to a BigBlueButton server you run, so course sessions use your endpoint and shared secret instead of a hosted service. Each step ends with a check you can run before the next one starts. Exact menu names depend on the Moodle version in use, so confirm them in your own site before you begin.

  1. Confirm the server is reachable over SSL

    Your Moodle server and the people who will join from browsers need to reach the BigBlueButton server on its hostname over HTTPS, with a valid SSL certificate for that name. Ask the infrastructure team to confirm that TCP ports 80 and 443 and UDP ports 16384 to 32768 are open where they need to be, and that the hostname resolves as intended. Open the API path on that hostname in a browser from outside the server network and check that the certificate is trusted without warnings. Done when the page loads without a certificate warning from a network your students use.

  2. Read the endpoint and secret with bbb-conf

    On the BigBlueButton server, log in as an administrator and run bbb-conf --secret, which prints the API endpoint and the shared secret. Confirm the option with bbb-conf --help on your installed version. Keep both values in your team's secrets store, away from email, tickets and course pages. Clear the terminal output if others can see the screen. Done when the endpoint matches the hostname you checked in the previous step and the secret is recorded where only administrators can read it.

  3. Enter the endpoint and secret in Moodle

    A Moodle administrator opens the BigBlueButton server settings in Site administration and enters the server URL and shared secret in the fields your version shows. Menu names differ between Moodle releases, so use the path that your site displays. Paste the values directly from the secrets store, and do not place the secret in any course, block or activity description. Save the settings, then run the server check or connection test your version offers. Done when the save completes without error and the check reports the server as reachable, with the version shown if your version displays it.

  4. Select the checksum algorithm the server accepts

    BigBlueButton API calls carry a checksum made from the shared secret, and the server accepts only the algorithms it is set up for. In Moodle, choose the checksum algorithm that matches your server. The documented options are SHA-256 (the default), SHA-1 for legacy use, and SHA-384 or SHA-512 on BigBlueButton 2.5 and later. Pick the strongest option both sides support, and confirm the choice against your server's version docs. If your Moodle version has no algorithm setting, check its plugin documentation before you continue. Done when the server check still reports the server as reachable after you save the change.

  5. Enable the activity for the course or site

    A Moodle administrator turns on the BigBlueButton activity in the site's activity module settings, then decides whether it is available across the site or only in selected courses. Record who approved that scope and who can add the activity to courses. Check the activity chooser in one course that should have it and one that should not. The exact menu path depends on your Moodle version, so confirm it in your own site before you brief teachers. Done when the activity appears in the intended course and is absent from the other.

  6. Create and join a test activity

    In a test course, add a BigBlueButton activity and start the session as a teacher or moderator. Open the same session in a private browser window signed in with a second account, such as a student test user, and join it. Confirm that both accounts reach the room, that audio and video work on both sides, and that chat and the participant list update. If recording is enabled, start one and check that it appears where you expect. Done when both accounts are in the same session at the same time and the test activity opens from the course page.

Which Moodle settings map to which BigBlueButton server values

This table pairs each Moodle-side field with the BigBlueButton server value it must match, who owns that value, and where it changes later. Read it before entering anything in Moodle, since a mismatch in the URL, secret or checksum usually shows up as a failed join. The secret is copied from the server and never placed in a course page or shared document.

Moodle settingBigBlueButton value it must matchWho owns itWhere it changes later
Server URLThe API endpoint of your server or Scalelite pool, as reported by bbb-confPlatform team that runs the BigBlueButton serverMoodle's BigBlueButton server settings, whenever the host or pool moves
Shared secretThe secret generated on the server, copied exactly with no extra spacesPlatform team, handed to the Moodle site administratorRotated on the server first, then updated in Moodle at the same time
Checksum settingThe algorithm the server accepts, SHA-256 by default and SHA-1 only for legacy useMoodle site administrator, confirmed with the server teamChanged when the server's accepted algorithm changes or a legacy setup needs it
Recording visibilityRecording enabled on the server, with 500 GB of disk for recordings per the 4.0 install guidanceServer team for storage, course staff for each session's recording choiceServer settings for storage and retention, Moodle activity settings for each session
Moderator roleNo server value. Moodle roles decide who can moderate a sessionMoodle site administrator and course managersMoodle role assignments in each course, with no server change needed
Secret placementNever in a course page, activity description or shared documentPlatform team and Moodle site administratorCheck copied text before sharing, and rotate the secret if it is exposed

Security for the Moodle BigBlueButton connection

The connection between Moodle and your BigBlueButton server is only as strong as its weakest credential or open port. The six controls below cover the secret behind each request, the transport it travels over, who can change the settings, which ports the server exposes and how recordings are read. Work through them before students join.

Keep the shared secret server-side

The shared secret is the key behind the checksum on every request from Moodle to your server. Store it only in Moodle's admin settings and on the BigBlueButton server, and never place it in a page a browser can load, as the API documentation warns. If it appears in a log, a screenshot, a ticket or a template, rotate it and update both ends at once.

Verify the checksum algorithm

Each BigBlueButton API call carries a checksum computed from the call and the shared secret, so the server can reject requests that were altered or built without the secret. The API documentation lists SHA-256 as the default, SHA-1 for legacy use, and SHA-384 or SHA-512 from version 2.5. Before you change the algorithm, confirm that your Moodle version and your server both support it, because a mismatch can block joins.

BigBlueButton API docs

Serve the hostname over HTTPS

Moodle sends the checksum and call parameters to your server, so the BigBlueButton hostname must be served over HTTPS with a certificate that matches the exact name Moodle is configured to call. BigBlueButton requires a valid hostname for SSL, so choose a name you control and confirm that the Moodle server trusts the certificate chain for its outbound calls. Schedule renewal with your other certificates, because an expired certificate stops joins until it is replaced.

Limit who edits activity settings

Moodle keeps the server URL and secret in site administration, so limit who can open those settings to a short, named list of administrators. Course-level editing rights decide who can add or change BigBlueButton activities, so give them only to teachers who run sessions. Review both lists after staff changes and confirm in your Moodle version which roles hold each capability.

Open only the required ports

BigBlueButton needs TCP ports 80 and 443 and UDP ports 16384 to 32768 reachable from user networks. Close every other inbound port on the server and on any firewall in front of it, and limit administrative access to networks you name. Users behind restrictive firewalls may need a TURN server, which the install guidance recommends, so test joins from those networks before go-live. Confirm the list against the install docs for your release.

Treat recordings as course data

Recordings capture what was said, shown and typed in a session, so they belong under the same access rules as the course. Confirm that playback is limited to enrolled users, test whether a recording link still works for someone outside the course, and set retention to match your policy. Ask your administrators to run that test with an account that is not enrolled before students record sessions.

Choosing a checksum algorithm for API calls

Use this tab for a new BigBlueButton server installed from scratch, connected to a Moodle site on a supported release. SHA-256 is the default checksum algorithm for BigBlueButton API calls, so most new setups keep it on both sides and change nothing. Only move away from the default if your server has been configured otherwise.

  • Match the server setting: Moodle must sign each call with the algorithm the BigBlueButton server expects, and the shared secret must be identical on both sides.
  • Keep the default unless told otherwise: If the server still uses SHA-256, do not switch to an older algorithm for convenience.
  • Keep the secret on the server side: Store the shared secret only in Moodle's configuration and never in a page a browser can read.
  • Record the versions: Write down your Moodle release and BigBlueButton version before you change anything, so you can repeat the test after any upgrade.
  • Test a full join: Start a test session from a course, join once as a teacher and once as a student, and confirm both joins succeed.

Before switching, confirm in the BigBlueButton API documentation for your version that SHA-256 is the default, and check your Moodle release notes for how the activity sends its checksum.

Testing joins and recordings before students use the activity

Run one scripted session before any student joins, and treat each failed step as a blocker to fix before launch. Start a meeting from a course's BigBlueButton activity in Moodle using a teacher account with moderator rights, then join from a second browser profile or a phone on a separate network, signed in as an enrolled student. Test the microphone and camera on both sides, listen for echo or clipped audio, and confirm the second participant can see the camera feed. Upload a slide deck, draw an annotation, move between slides, and send chat messages in both directions. These checks use the same server URL and shared secret that the activity uses in production, so a pass confirms the live connection, not just that the server is running.

Next, keep the session running long enough to produce a recording, then confirm that the recording appears in the activity for an enrolled user. Then open the same activity in a private browser window while logged out, and confirm the recording is neither listed nor playable. This check covers the access path that matters most for student data, so do not skip it. Storage is the second gate. The install requirements for BigBlueButton 4.0 call for 500 GB of disk for recordings (50 GB without recording), so run df -h on the server and confirm that the directory holding recordings sits on a volume with that headroom before classes begin. Confirm the version you run, because older branches have different requirements.

Common failures when Moodle cannot reach its BigBlueButton server

This table lists the connection failures most often seen between Moodle and a self-hosted BigBlueButton server, with the likely cause and fix for each. Read the symptom first, then check the cause and apply the fix in order. Most failures come from the endpoint, the shared secret, the certificate hostname or the firewall, so check those before changing anything inside Moodle.

SymptomLikely causeFix
Moodle reports the server cannot be reached on every joinThe endpoint is missing the /bigbluebutton/api path or uses the wrong hostCopy the full API URL from bbb-conf output, including the trailing path, then retest the connection in the activity settings.
Checksum errors or invalid secret messagesThe shared secret differs from the server's, or the checksum algorithm does not match the serverRecopy the secret exactly, then confirm the algorithm. SHA-1 is legacy, and SHA-384 or SHA-512 need version 2.5 or later.
Browsers or Moodle show SSL certificate errorsThe certificate does not match the hostname in the server URL, or no valid hostname is setUse the public hostname on the certificate in both the server URL and Moodle, then renew the certificate before it expires.
Server is unreachable from Moodle or user networks while runningTCP 80 or 443 is blocked between Moodle, users and the BigBlueButton serverOpen TCP 80 and 443 from Moodle's network and from user networks, then test a join from outside the campus firewall.
Joins connect but users have no audio or videoUDP 16384 to 32768 is blocked, or users sit behind strict firewalls with no TURN serverOpen the UDP media range on the server, deploy TURN for restrictive networks, then test joins from each network type.
Recordings are missing after sessions endDisk is too small (500 GB with recording, per the install docs), processing is unfinished, or course settings hide themCheck free disk and processing status on the server, then confirm recording visibility settings for the course in Moodle.
Settings change or pages break after a Moodle upgradeThe upgrade resets activity settings, or the web server document root still points to the main Moodle folderFrom Moodle 5.1, point the document root to /public, then recheck the server URL and secret in the activity settings.

Questions buyers ask before connecting Moodle to their own BigBlueButton server

How much does it cost to connect Moodle to a self-hosted BigBlueButton server?

The cost depends on the written scope, and DeployOpen does not publish a price list, so the quote follows from the scope you agree before work starts. Four parts drive it. Server build: a BigBlueButton 4.0 server needs at least 16 GB of RAM with swap, 8 CPU cores with high single-thread performance and 500 GB of disk for recordings (50 GB without recording), whether you run hardware or cloud instances. Network: the server needs 250 Mbit/s symmetrical bandwidth, with TCP ports 80 and 443 and UDP ports 16384 to 32768 reachable. SSL: a valid hostname is required. Moodle access and testing: the work changes if your Moodle site is self-hosted, runs on MoodleCloud or is managed by a Moodle Partner, because the admin access you can grant differs. Server build is mostly one-time, while bandwidth, hosting and upkeep recur.

How long does it take to connect Moodle to our own BigBlueButton server?

The duration depends on three things: how many Moodle sites you connect, how ready the server is and how many test cycles your team needs. Each Moodle site you connect needs its own configuration and its own test pass, so a multi-site rollout takes more time than a single site. Server readiness is the first gate. BigBlueButton 4.0 installs on Ubuntu 24.04 64-bit, direct upgrades from 2.6, 2.7 or 3.0 are not supported, so a clean installation is recommended, and the server needs a valid hostname, open ports and working SSL before Moodle can point at it. Test cycles cover joins, audio, video, chat, recordings and the student view, and each failed cycle adds time. Agree the schedule in the written scope and check it against your term calendar.

What do we need to provide before the work starts?

Your team provides access and inputs, and the build and configuration happen inside your infrastructure. Confirm these four items at kickoff and in the written scope:

  • Server access: a clean Ubuntu 24.04 64-bit host, or access to the cloud account where it will run.
  • Moodle admin access: an administrator account on each Moodle site, so the activity can be enabled and pointed at the server URL and shared secret.
  • A DNS name: a hostname that resolves to the server, used for the SSL certificate.
  • A test course and named testers: a course for trial sessions, plus the staff and students who will run joins and recordings.

If any item depends on a third party, such as a Moodle Partner or a hosting provider, ask who grants it and by when.

Can our own staff connect Moodle to BigBlueButton without a partner?

Yes, if your staff have the prerequisites and a written test plan. The core steps are to install BigBlueButton on a clean server, use bbb-conf to find the API endpoint and shared secret, enable the BigBlueButton activity in Moodle, and then test joins and recordings from both the teacher and student sides. Your team needs Linux administration skills, Moodle administrator rights and the ability to manage DNS and firewall rules. A partner adds a fixed-scope plan, hardening of the server and its TURN and front-end paths, documented configuration and a retest after fixes. Your own team keeps the knowledge in-house and carries the upkeep. Decide by checking who holds the skills today and who will run the server after go-live.

Is one BigBlueButton server enough for our Moodle classes?

One server is enough when your peak number of concurrent sessions fits within what that server can carry. That number depends on class sizes, session types and how much recording you do. The install minimums set a starting floor, and your measured peak decides the rest, so estimate peak concurrency before you choose the design. If the peak grows past one server, Scalelite is the open-source route. It is a load balancer that makes a pool of BigBlueButton servers appear as one server and sends each meeting to the least loaded server. It uses a PostgreSQL database, a Redis cache and an NFS shared volume for recordings, so it adds components your team must run and back up.

What should we ask for in a written quote for this work?

Ask for a written scope that lists each deliverable, the timeline and the exclusions before you compare figures. DeployOpen's engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and the quote follows from that scope. Ask the quote to show these items separately:

  • Server build and hardening, including the operating system setup, TURN and firewall configuration
  • SSL and DNS work for the hostname
  • Moodle configuration for each site, by hosting type
  • Test plan, test cycles and the retest after fixes
  • Documentation and handover
  • Recurring items such as hosting, bandwidth, upgrades and support, and whether they sit under a retainer

Also ask who provides server access and who signs off on the test results.

How DeployOpen scopes, delivers and supports the Moodle BigBlueButton connection

DeployOpen starts with the Moodle site you run and the BigBlueButton server or Scalelite pool that will host the sessions, then agrees the connection work in writing before any change is made. The work covers the activity settings, the server URL and shared secret, join and recording tests, and what students see in their courses. Everything runs inside your own infrastructure, so sessions and recordings stay on infrastructure you control.

How we scope

  • The written scope names your Moodle version, your BigBlueButton server or pool, and the courses using the activity.
  • Engagements are fixed-scope, so deliverables and timelines are agreed in writing before any Moodle or server change starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer once the connection is live.

How we build

  • Check the Moodle version and web server document root first, since Moodle 5.1 moved the root to public.
  • Enter the server URL and shared secret in Moodle, keeping the secret out of any page students can view.
  • Confirm the checksum algorithm on each side matches, since the BigBlueButton API signs every call with the shared secret.

How we hand over

  • Test joins with moderator and student accounts, plus one recording, before teachers use the activity.
  • Documentation covers the settings, secret location, checksum choice, test results and the steps for rotating the secret.
  • Your team receives a walkthrough of the activity settings and the test checklist for future course setups.

How we support

  • Support covers the Moodle and BigBlueButton upgrade paths, with version checks against the release notes before each change.
  • Recheck the connection after Moodle point releases, which arrive every two months, and after BigBlueButton updates.
  • Keep the secret rotation and checksum settings in the runbook so operators can respond without guessing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.