InsaneHero Posted July 21, 2015 Share Posted July 21, 2015 I think the image says it all but details are:- had this problem with my old examples local repo, so I killed it and grabbed a brand new one- there is an 'examples' folder which contains almost all the phaser examples- I want to open it using /examples/debug.php- the /examples folder doesn't show up in WAMPServer, although it is definitely on my local machineAny ideas how to make WAMP see the folder? Link to comment Share on other sites More sharing options...
Skeptron Posted July 21, 2015 Share Posted July 21, 2015 Maybe it's a right access problem. If you try to reach http://localhost/phaser_examples/examples, do you get any exception? Could help. InsaneHero 1 Link to comment Share on other sites More sharing options...
InsaneHero Posted July 21, 2015 Author Share Posted July 21, 2015 Ah, brilliant idea thanks Skeptron. It generated this error:Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.More information about this error may be available in the server error log. So I looked in the WAMP logs and the apache_error.log contains lots of this message: [Tue Jul 21 21:15:39.739149 2015] [core:alert] [pid 5152:tid 1500] [client 127.0.0.1:52732] C:/wamp/www/phaser_examples/examples/.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration So it looks like the problem is in .htaccess - which came from the repo. So now, last question (possibly!) ... how do I fix that? BTW .htaccess contains only these lines:Header set Access-Control-Allow-Origin "*" RewriteEngine OnRewriteBase /RewriteRule ^(.*)\.html$ /index.php [QSA,R=302,L] Link to comment Share on other sites More sharing options...
Skeptron Posted July 21, 2015 Share Posted July 21, 2015 Does this help? http://stackoverflow.com/questions/10185717/internal-server-error-htaccess Haven't used WAMP for ages... InsaneHero 1 Link to comment Share on other sites More sharing options...
InsaneHero Posted July 21, 2015 Author Share Posted July 21, 2015 Yes that helped a lot, thanks For anyone else caught out by this odd requirement, hit the WAMP icon in the task bar and in the apache|apache modules menu, enable "headers_module" and "rewrite_module". They don't appear to be set by default when you install WAMPServer so this will hit anyone attempting to use the examples locally with that program. Thanks Skeptron! Link to comment Share on other sites More sharing options...
Skeptron Posted July 21, 2015 Share Posted July 21, 2015 Glad I could help! =) Link to comment Share on other sites More sharing options...
Martijnvh Posted February 18, 2016 Share Posted February 18, 2016 This problem bothered me for a while. I finally found a fix: the parts of Examples module end up showing "Service unavailable!" error bacause of the preconfigured redirect. To fix it navigate to file:C:\xampp\apache\conf\extra\httpd-ajp.conf you cancomment out the following line with #:ProxyPass /examples ajp://127.0.0.1:8009/examples smax=0 ttl=60 retry=5 Then restart the server and enjoy Link to comment Share on other sites More sharing options...
Recommended Posts