I keep getting 404 error message it says can't find it in the server
Double check the location. If you place say, index.html there, can it be found? At the moment it looks like a problem with your web server. Uninstall everything, then start by installing the webserver. Confirm that you can access normal webpages, and only then install PHP.
do you have a solution for this?
You could install a package like Xammp or wampserver, as sheephat suggested, but I think that those are rather unnecessary. You could just end up with more problems if you do not know where things should go.