Installing PHP-SSH2 for KVM Auto IP

**Only Required FOR MODULE VERSION 1.3.1 or LOWER, STARTING 1.3.2.1 this is optionaal as WE USE PHPSECLIB if PECL SSH2 is not installed**

For Auto KVM IP management, Module require the usage of SSH to modify and configure the DHCP server and reload it, this require configuring the nodes using root logins in WHMCS and to have Libssh2 for PHP installed/compiled on your WHMCS Server.


Windows on Xampp

  • Modify your PHP.ini under xampp/php and xampp/apache/ and uncommen the ssh2 extension then restart xampp.

;extension=php_ssh2.dll

to

extension=php_ssh2.dll

  • Restart xampp apache service.


Centos:

  • Enable the Repoforge:

CentOS 5 32Bit: rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
CentOS 5 64Bit: rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
CentOS 6 32Bit: rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
CentOS 6 64Bit: rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

  • Install libssh-dev on a fresh install of CentOS or cPanel based server..

yum install libssh2-devel
pecl install -f ssh2

  • Restart Apache when Possible

    service httpd restart
  • Check if ssh2 is enabled by running below and checking if returns output, if not then add it to extensions.

    php -m | grep ssh2

 

  • If above gives no output then add the php extension manually to the PHP.ini

echo -e "\nextension=ssh2.so" >>  /etc/php.ini

  • Restart Apache when Possible

service httpd restart

 

 

Ubuntu

  • Install the needed packages:

    apt-get install libssh2-1-dev libssh2-php

  • Restart Apache when possible:

    service apache2 restart

.


I will put more by time as  come across, More info can be aso found here http://www.php.net/manual/en/ssh2.installation.php

  • 118 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente?

Related Articles

Getting error Could not poll for Version while configuring

Symptoms:Error: Could not poll for Version while configuringProblem:To be able to solve this...

Proxmox Backup Notifications Failing

Problem:   After Enabling Mailto feature for backup notificatins, no backup completion...

Setting up Auto IP for KVM (Updated 19th Apr 2017: OVH support)

***NEW Method***: with the new Auto Scripts Template feature you can now perform Linux/unix KVM...

KVM arbitrary arqument usage

writing in progress

OpenVZ Console not Progressing

Symptoms:Error: unable to write `random state`Error: ,Error: nothing showing on new Console, only...

Powered by WHMCompleteSolution