zmen Posted May 21, 2014 Share Posted May 21, 2014 Hello. Need to create a module for WHMCS. Functions of the module: 1. Restart VPS Linux server Ip address is taken from the additional field(custom field). User and password for the server specified in the code module. (One for each server) Function of button: Sent reboot command to the server. Possibility pressing no more than onetime in every 5 minutes. 2. Editing a text file on the server. In the text file one line. File path edit in code. (Same file path for all servers) The module should not be encoded. Sorry for bad English. 0 Quote Link to comment Share on other sites More sharing options...
stuntnmore Posted May 22, 2014 Share Posted May 22, 2014 You would need some type of api to start off with, or it will be much harder to start, what are you using to control the vps? KVM or openvz? 0 Quote Link to comment Share on other sites More sharing options...
zmen Posted May 23, 2014 Author Share Posted May 23, 2014 Using OpenVZ. But need to reboot all vps, openvz or KVM. Script must login to server and send command reboot. 0 Quote Link to comment Share on other sites More sharing options...
stuntnmore Posted May 27, 2014 Share Posted May 27, 2014 You could use php_ssh2 extension to login and callback a command to execute the reboot, its tedious though. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted May 28, 2014 Share Posted May 28, 2014 Using OpenVZ. But need to reboot all vps, openvz or KVM. Buy Solus, use the Solus WHMCS module - job done. 0 Quote Link to comment Share on other sites More sharing options...
zmen Posted May 29, 2014 Author Share Posted May 29, 2014 Buy Solus, use the Solus WHMCS module - job done. Job done if all VPS will be hosted on my node. But if i need to reboot VPS from another node, which will buy from another hoster? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.