Migrating from wordpress


I have read the migration guide but there is a challenge I think was not addressed and I need someone who has gone through the process to help me understand.

If I am to move siteA from wordpress to ghost how then do I do with the installation of ghost on the same domain?

i have to access ghost via a subfolder however the main site has wordpress installed on it with another IP, how do i go round this?