Answer the question
In order to leave comments, you need to log in
VPS for teapot?
Good afternoon!
It was necessary to set up a websocket in the Laravel project (do not offer pusher)
On virtual hosting, they said that there is no such possibility
On the local machine, everything has already been done
Downloaded nodejs, redis, laravel-echo-server
Everything works fine, but now you need to somehow do it only with me, but also on the internets.
Which path should I take without really digging myself into the most difficult parts of setting up a server
? Which OS should I choose, and so on?
Chose Ubuntu 18.04. I don’t know why, it’s just that it’s “cooler”)
And Additional software: LAMP (I saw a familiar bunch of php + mysql)
And I don’t understand what to do next, everything is somehow mixed
Of course I understand that no one does anything for free, but I would be glad for some step-by-step instructions
Answer the question
In order to leave comments, you need to log in
Briefly, the main points that many people get wrong:
LEMP, not LAMP - Apache is not needed in the PHP ecosystem.
Ubuntu 18 is a good choice.
Autoload the websocket worker via the systemd unit.
And run the PHP pool as the user who owns the project files.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question