You cannot start the server by calling it through HTTP. Assuming you are using Apache, this happens: the Apache workflow takes your request and runs the underlying PHP script. Then, depending on your php.ini settings, the script exits after a certain time ( max_execution_time ).
For this to work the way you expected it to work, the PHP script will need to unlock itself and start a new session (via posix_setsid() ). This will require that worker threads run as root, although this is an absolute security issue.
If you have access to the server (via SSH), you can start the server in the same way as locally, except that - if you do not have root privileges - the PHP script cannot listen to privileged ports (ports <= 1024).
source share