Seems to me you have a mismatch between local development and your remote target.
Is your local site in a subfolder and your remote in the root? That will give you a lot of problems.
You should develop with the same site structure.
Also is your remote target running php at all? Did the target check went all good?
Maybe post screenshots of your project settings, general and also per target.