An alternative to installing a local LAMP server is to use a simple python HTTP server. As long as you have python installed, just open bash and use the python interpreter.
For python 2 use:
python -m SimpleHTTPServer 8000
For python 3 use:
python -m http.server 8000
Then just point your browser to localhost: 8000 and you should have no problem accessing the file if it is in the same directory.
source
share