Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

PHP Across VM Environments Possible?

PHP Across VM Environments Possible?

PHP Across VM Environments Possible?

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!

RE: PHP Across VM Environments Possible?

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 (http://php.net/manual/en/function.ssh2-scp-send.ph...)


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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close