Jump to content

Ajuda No Whmcs E Servidor Linux


Recommended Posts

Como faço isso?

Enviado de meu GT-I8190L usando Tapatalk

 

depende de onde e como que mostrar essa informação para adaptar ao whmcs. Mas conectar com o servidor usando PHP é relativamente facil. Segue um exemplo.

<?php

    $server = "serverB.example.org";
    //hostname ou IP

    //specify your username
    $username = "root";

    //select port to use for SSH
    $port = "22";

    //command that will be run on server B
    $command = "uptime";

    //form full command with ssh and command, you will need to use links above for auto authentication help
    $cmd_string = "ssh -p ".$port." ".$username."@".$server." ".$command;

    //this will run the above command on server A (localhost of the php file)
    exec($cmd_string, $output);

    //return the output to the browser
    //This will output the uptime for server B on page on server A
    echo '<pre>';
    print_r($output);
    echo '</pre>';
?>
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...

Important Information

Do you agree with our terms?