I have recently setup a Vultr VPS and created a folder inside the /home/
directory named py-bridge
,
I then try to access a simple .php
file with the path: /home/py-bridge/index.php
via the Chrome browser.
But I get this returned back to my screen:
The url I am using on browser is:
http://my main-ip
/py-bridge/index.php
VPS Information:
OS: CentOS 9 Stream x64
Thanks in advance for your time and effort!
Of course that won't work. That's now how web services work
You need a web server that can respond to http requests and sends back the file requested [py bridge in your case]
So either write a proper http server that does this
or front your php script with nginx and php-fpm and use that