Introduction
Below is the full instruction on how to install and test if PHPseclib is installed.
NOTE: Please understand that PHPSecLib is a third-party customization that cPanel Software does not provide any support to.
This information is purely informational, if you are unable to perform this on your behalf, it is recommended to reach out to a qualified system administrator that have experiences in such regards.
Procedure
1. You will first need to enable the repository, list, and install the library for PHPSeclib:
/opt/cpanel/ea-php56/root/usr/bin/pear
channel-discover phpseclib.sourceforge.net
This is for EA-PHP56, if you are wanting to install this on other EA-PHP version, such as 7.0, you can simply update ea-php56 into ea-php70.
PHPSeclib is sometimes used in conjunction with ssh2 and other security libraries. To install SSH2, simply run the command below:
|
This is for EA-PHP56, if you are wanting to install this on other EA-PHP version, such as 7.0, you can simply update ea-php56 into ea-php70.
To test if it is working:
This code can be tested with PHP:
$
cat
sec.php
<?php
set_include_path(get_include_path() . PATH_SEPARATOR .
'phpseclib'
);
include(
'Net/SSH2.php'
);
?>
Comments
0 comments
Article is closed for comments.