flarum-ext-roadrunner
is a Flarum extension that leverages RoadRunner to accelerate your Flarum installation, improving performance and scalability.
- Optimizes Flarum performance by utilizing the RoadRunner PHP application server.
- Handles requests with better efficiency, reducing the overhead of traditional PHP-FPM.
- Seamlessly integrates with your existing Flarum installation with minimal configuration.
Follow these steps to set up flarum-ext-roadrunner
in your Flarum project.
Put roadrunner
directory into the root directory of your Flarum installation. This will allow the extension to access necessary files and configurations.
Download the latest RoadRunner binary from the official releases page and move it to the /usr/local/bin
directory.
Add the following snippet to your composer.json
file under the "repositories"
section:
"repositories": [
{
"type": "path",
"url": "./roadrunner/worker"
},
{
"type": "path",
"url": "./roadrunner/http"
}
],
"minimum-stability": "dev"
This tells Composer to look for local development packages.
Run the following command to install RoadRunner and all its dependencies:
composer require nyholm/psr7
composer require spiral/roadrunner-http "dev-main" --with-all-dependencies --prefer-source
This will fetch the required RoadRunner server for Flarum.
- Start the RoadRunner Server Once everything is set up, you can start the RoadRunner server with the following command:
rr serve
- Access Your Flarum Installation After starting the RoadRunner server, your Flarum installation will be accessible at:
http://localhost:8080
Enjoy the improved performance of your Flarum forum!
Make sure to configure your server and environment according to the RoadRunner documentation for optimal performance. This extension is designed to work with RoadRunner 3.x.
This project is licensed under the MIT License. See the LICENSE file for more details.