ballingerj Posted July 16, 2015 Share Posted July 16, 2015 Hello everyone, I'm trying to use MAMP to set up a webhost for Phaser, as per http://phaser.io/tutorials/getting-started/part2, and whenever I try to open localhost/hellophaser I get a 403 error. I've tried setting it up manually too, as per https://discussions.apple.com/docs/DOC-3083, but I can't get that to work either. ^.^' Can anybody give me a hand? Thanks. Link to comment Share on other sites More sharing options...
drhayes Posted July 16, 2015 Share Posted July 16, 2015 I think MAMP is overkill for serving a bunch of static files. If you have NodeJS installed you can run "npm install -g http-server" and use that instead by typing "http-server" in the directory you want to serve; much more lightweight. If you have Python installed you can run "python -m SimpleHTTPServer" to start a server in the local directory for the same benefit. Link to comment Share on other sites More sharing options...
CodeToWin Posted July 16, 2015 Share Posted July 16, 2015 i ran into problems with wamp. I switch to xampp and have been quite happy. Maybe give it a try? Link to comment Share on other sites More sharing options...
Skeptron Posted July 16, 2015 Share Posted July 16, 2015 403 is an access right error code, so you might have forgotten some roles configuration. But like others say, it might be overkill just to host static files. Link to comment Share on other sites More sharing options...
drhayes Posted July 16, 2015 Share Posted July 16, 2015 Oh, I should say: you probably won't be able to access your game directly with a "file:///" URL because of security restrictions around loading files from different directories... at least in Chrome. That's why you need some kind of web server. Link to comment Share on other sites More sharing options...
ballingerj Posted July 16, 2015 Author Share Posted July 16, 2015 I did a chmod 777 and that actually seemed to solve it, but I think I might use the cloud 9 IDE or sandbox instead. They seem to be less stressful. Link to comment Share on other sites More sharing options...
Recommended Posts