How to setup PHP server in production?

I use php -S command to start development server on localhost for php files. But I guess, I shouldn't use this thing in production. Currently I'm trying to setup my website on VPS and I don't know how to start php server forever using ssh on port 4242. I know, this is probably very dumb question, this is my first time I work with real hosting

Would be grateful to any help :)

Answers 1

  • You need to setup virtual host so that it should run always.

    Here is a full doc of setup guide on server.

Related Articles