Laravel Reverb in Production #50675
Replies: 12 comments 18 replies
-
In Env
In config/reverb.php
In the project nginx server config
It is working for me. |
Beta Was this translation helpful? Give feedback.
-
I have the same type of issue. nothing was helpful. implementing web-sockets in production is like finding water in mars. All the possible ways i have tried.
if some one gives a proper setup or guide from start to end would help for production. in local it took only few minutes to implement. this is the same thing happened before launch of reverb. waiting nearly 6 months to implement in production |
Beta Was this translation helpful? Give feedback.
-
I came across to this issue when I needed to setup reverb on VPS for myself. Add the following server tag in your nginx configuration file.
This is my
In my case port 8080 was used by another process and I started reverb on port 8082 and I am listening on nginx at port 8081 which passes the socket connection to reverb. [Update]Also, Make sure that incoming port Check if it is opened
Open port 8080
|
Beta Was this translation helpful? Give feedback.
-
Here's my working configuration for Laravel Forge:
|
Beta Was this translation helpful? Give feedback.
-
i am running forge - oddly, i didnt have to edit the nginx files ##env VITE_REVERB_APP_KEY="${REVERB_APP_KEY}" ##CHECK PORTS ARE OPEN ##OPEN THEM IF NOT |
Beta Was this translation helpful? Give feedback.
-
In my case everything seems to be fine in the production server. running Nginx in port 9000
.env
revert.php
still getting the same error Laravel Log:
|
Beta Was this translation helpful? Give feedback.
-
Hello, let me give you my point,I encountered a similar issue, my localhost was working perfectly but in my traning server (VSP with WHM) it didn't work. Firstly, ensure that the proxy module is enabled:
You should see something like this:
If the module isn't installed, you'll need to install it and load it into Apache (though this wasn't my case). You may also need to uncomment something in the httpd.conf file. After that, insert this code into your virtual host or use an include file:
This solved my problem. |
Beta Was this translation helpful? Give feedback.
-
This is how I solved reverb integration problem on production server. I use docker+ssl enabled . I worte this medium article ,you can find the configuration here https://medium.com/@saddanfah/how-to-use-laravel-reverb-in-production-server-d89e9670b76a |
Beta Was this translation helpful? Give feedback.
-
In case anyone is having issues getting it to work with Caddy
|
Beta Was this translation helpful? Give feedback.
-
It took me a while but I managed to get it working, here are some very important things that can prevent Reverb from working on a production server:
|
Beta Was this translation helpful? Give feedback.
-
Here is my solution for Secure Application (SSL)System info:apache2 First update the
|
Beta Was this translation helpful? Give feedback.
-
For Apache, putting this in my Pre Virtual Hosts config was sufficient:
It does require the |
Beta Was this translation helpful? Give feedback.
-
I have created a sample laravel 11 project and in which I have configured all the requirements for the laravel reverb.
In local machine/setup reverb is working fine. when I deployed in production server for testing I am getting the bellow error.

None of the above helped me. Kindly help me on this.
.env
config/reverb.php
Beta Was this translation helpful? Give feedback.
All reactions