How to access files in root directory of VPS from other shared hosting server?

1.5k Views Asked by At

I have a VPS where I have uploaded some files in the root directory. I want to access those files on my website (developed in PHP) which is hosted on a shared server. Is it possible?

I have searched on internet but found nothing. Need some guidance.

thanks

1

There are 1 best solutions below

4
ikyuchukov On

I presume you have 2 servers, one is the VPS and another is the shared hosting one.

You can access those files in a few ways.

  • Open a SSH connection from your shared host to the VPS
  • Setup a FTP server on the VPS and use a FTP connection from the shared hosting to the VPS
  • Setup a PHP script (with some kind of authentication) to serve the files via an API.