SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2004
    Location
    Ottawa, Ont. Canada
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to execute multiple PHP scripts located on separate VPSs

    Hello

    I have a dedicated server with more than 10 OPENVZ VPSs.

    All these VPSs are accessing a common MySQL/MariaDB database.

    These VPSs each have a script to access data from the database.

    I want one PHP script to execute all the individual PHP scripts on the VPSs with one command/link..

    How can this be accomplished.

    Thank you

    Peter Hall

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,069
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    All of your VPS should have IP addresses or domains that can be used to access them, right? So just use cURL and hit all of them sequentially or via a loop.
    Be sure to congratulate Patche on earning July's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •