How to Implement Real‑Time Notifications in a Flarum Forum
Updated 2026-06-25 · Hosting Reviews
Implementing real time notifications in a Flarum forum can boost engagement and keep members active, but the process is simpler than you think. Below is a practical, step‑by‑step guide that covers everything you need – from picking the right hosting plan to configuring the notification extension – so you can get your community up and running without breaking the bank.
What You Need Before You Start
First, gather these essentials:
- A domain name that reflects your brand.
- Web hosting that can handle the traffic spikes when notifications are pushed.
- Flarum installed on the server (or a one‑click installer if you prefer).
- A real‑time notification extension such as "fof/websocket" or "flarum/ext-real-time".
If you’re new to web hosting, Hostinger offers an affordable entry point with fast SSD servers, free SSL, and a simple control panel that makes installing Flarum a breeze.
Choosing the Right Hosting Plan for a Forum & Community Site
Forums can start small and grow quickly, so pick a plan that scales with your membership count. Here’s a quick comparison:
- Shared Hosting – Ideal for under 500 daily visitors. Costs typically range from $3‑$8 per month. It’s easy to set up, but CPU and RAM are shared, which may limit real‑time push performance.
- Cloud Hosting – Good for 500‑5,000 daily visitors. Prices sit around $8‑$15 per month. You get dedicated resources and easy scaling, which helps keep notifications snappy.
- VPS – Best for 5,000+ daily visitors or high‑traffic bursts. Expect $15‑$30+ per month. Full control over the server lets you tweak WebSocket settings for optimal latency.
Hostinger’s cloud plans strike a sweet spot for most growing communities, offering the performance of a VPS at a shared‑hosting price.
Installing Flarum and the Real‑Time Extension
Once your Hostinger account is active, follow these steps:
- Log into the Hostinger control panel and create a new MySQL database.
- Upload the latest Flarum zip file via the file manager or FTP.
- Run the installer by navigating to your domain and following the on‑screen prompts – enter the database details you created.
- After installation, open the admin dashboard, go to Extensions, and search for a real‑time notification package (e.g., "fof/websocket").
- Install the extension, then configure the WebSocket server URL (Hostinger provides a free SSL‑protected sub‑domain you can use for wss connections).
The extension will automatically push new replies, mentions, and private messages to users without them needing to refresh the page.
Speed and Security Basics
Real‑time features rely on low latency and secure connections. Keep these settings in mind:
- Enable HTTPS – Hostinger includes a free SSL certificate; activate it in the control panel.
- Use a CDN – A content delivery network reduces latency for static assets like CSS and images. Hostinger offers integrated CDN options.
- Optimize PHP – Set PHP to version 8.1 or higher for better performance.
- Limit background processes – Disable unused cron jobs to free up CPU for WebSocket traffic.
These tweaks keep your forum fast and protect the real‑time channel from man‑in‑the‑middle attacks.
Step‑by‑Step to Get Your Forum Live
Here’s the concise roadmap you can follow in a single afternoon:
- Register a domain through Hostinger (or transfer an existing one).
- Choose a cloud hosting plan that matches your expected traffic.
- Set up the SSL certificate and enable the CDN.
- Install Flarum using the one‑click installer or manual upload.
- Add the real‑time notification extension and configure the WebSocket URL.
- Test notifications by posting a reply in a new thread while logged in as another user.
- Fine‑tune performance settings (PHP version, caching plugins) and launch.
With Hostinger’s intuitive dashboard and affordable pricing, you’ll have a fully functional community site that can grow alongside your audience.
FAQ
Do I need a dedicated server for real‑time notifications?
No. For most small to medium forums, a cloud plan with 2‑4 GB RAM is sufficient. Only extremely high‑traffic sites (tens of thousands of concurrent users) typically require a dedicated server.
Can I add real‑time notifications to an existing Flarum installation?
Yes. Just install the WebSocket extension via the admin panel, configure the server URL, and clear the cache. The feature works on any Flarum version that supports extensions.
Will the cost increase dramatically when I add real‑time features?
Not significantly. The main cost is the hosting tier that can handle persistent WebSocket connections. Hostinger’s cloud plans add only a few dollars per month compared to basic shared hosting.