I have created a web, separating the server from the web itself, now I am in a dilemma, if I have a Apache with the php offered by the API and another with the web that consumes the API. But these two Apache have to be on a single PC.
Are they separated by ports , the API by 8080 and the web by 80 ?
Or does this type of programming API first , require having two servers?