If you are talking about publishing from within the program, you are overthinking what you need to do locally. Just create your projects in the htdocs folders you require and it will already run from
http://localhost . You can (if you want), but you don't need to FTP into localhost as your files and server are already local.