Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP Across VM Environments Possible?

Status
Not open for further replies.

akrshaw

Programmer
Oct 24, 2006
77
US
We currently have a Web application that exists on a physical server that utilizes an automated PHP function to create print folders on a file share.

We are currently migrating the environment to the cloud, and have been told we will no longer have the functionality to provision file shares on the vm. The only option that has been presented to us is to provision an additional vm and use that as our file share.

While this works for the administrative files, PHP would have to go outside of the application host vm and create folders and files on another vm for the print share. With the security aspects built in to PHP, we are unsure this is possible and would very much like to avoid going down a rabbit hole.

Any insight is greatly appreciated!
 
There is no reason (that I know of) that would prevent you from using NSF (Network Filing System), exporting those 'shares' and granting access to that filing system(s) for the other IPs and users, this is easier if the user names and UID on each VM are the same, the first user you create usually has an UID of 500 and is incremented (by 1) on each new user added.

Failing that you would could have scripts on each VM that perform the necessary functions of writing files and saving and use them as a 'web service'.

And you could use PHP SCP functions to transfer files (
Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top