Can you describe what is already hosted on your server? If you already have another webserver running, you can't install Caddy alongside it.
You can host multiple apps on the same server, but if one is NodeJS and another is PHP, this is not the easiest task. The easiest would be to spin up 2 different VPS, or use a managed hosting for Flarum. If you are not familiar with webservers and managing a VPS, a managed hosting with SSH access would be a much easier starting point.
If you do want to host NodeJS and PHP on the same server, you will need to choose a webserver to use as a reverse proxy in front of both apps. Then you can configure Flarum as a new host/virtualhost under this server, or in a container as a second webserver that is then tunneled from the reverse proxy.
I also recommend against using generative AI go get instructions on the Flarum installation. Flarum has evolved a lot in the last few years and unless you are certain your AI model is trained on the latest version of the Flarum documentation it's likely to give incorrect/outdated instructions. You can easily find good tutorials for installing nginx or Apache on a VPS, and then you can follow our official installation guide.