PHP has exec() if you insist on reimplementing CGI on top of PHP. Never use cloudlinux so I don't know if they allow native executables or not. If they do, consider taking pure FPC standalone service instead. It can run continuously, unlike PHP which must build everything from scratch on every request, at best only use caching engine to reduce the work. Simply configure your app to listen on any open port and access that from your browser. Must consult provider on this, but port 80 should open, otherwise they can't serve HTTP normally. Otherwise, both apache and nginx supports reverse proxy, so your app can listen on any port and web server will pass the request to your app if some conditions match (file extension, server name, whatever, you have plenty of options). You will need to write the virtual server config, but again, I don't know if your provider allows it or not as it's not a VPS where you have 100% full control of your own instances.