Add a sub-station to the Cpanel domain name control, there are obvious text prompts, add a sub-domain name, and set the path.
The default home page does not need to be set. Generally, it is set. If the home page of your program is wrong, you can change it to index.php.