Jameu Lukasli1
Jameu Lukasli1

Reputation: 517

How can I access a file in my home/folder-name on a Vultr VPS setup?

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:

enter image description here

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!

Upvotes: 1

Views: 906

Answers (1)

Asad Awadia
Asad Awadia

Reputation: 1521

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

Upvotes: 1

Related Questions