Aamir Bashir
Aamir Bashir

Reputation: 21

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

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

Upvotes: 0

Views: 1927

Answers (1)

ikyuchukov
ikyuchukov

Reputation: 660

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.

Upvotes: 0

Related Questions