Help getting basic AJAX/PHP application to run


Trying to run a basic jquery-ajax / php application.
When I preview the .html page, the ajax is getting a 404 when it calls the .php file.
I’m sure I have the file path correct, is there some basic setup that I’m not doing?
Any guidance appreciated!