Author Topic: LibSSH2  (Read 18487 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
LibSSH2
« on: April 09, 2015, 04:46:12 AM »
I have problems on install libSSH2.

I've follow some guides here and there and finally comes up to:

Code: [Select]
yum install gcc php-devel php-pear libssh2 libssh2-devel
pecl install -f ssh2
touch /etc/php.d/ssh2.ini
echo extension=ssh2.so > /etc/php.d/ssh2.ini

The pecl install stop was "failed with":
Code: [Select]
Warning: opendir(/tmp/pear/temp/pear-build-rootzlWRuA/install-ssh2-0.12//usr/local): failed to open dir: No such file or directory in /usr/lib64/php/PEAR/Builder.php on line 188
I watch at phpinfo() and the module seems loaded, but didn't recognize the ssh2_connect() comand (
Code: [Select]
Fatal error: Call to undefined function ssh2_connect() in)

The directory /tmp/pear/temp/pear-build-rootzlWRuA/install-ssh2-0.12 is not anymore so i cannot dig for files. I think that must be fixed on the install. If you see carefully, you will see that there's no space on the last paths.

Code: [Select]
Warning: opendir(/tmp/pear/temp/pear-build-rootzlWRuA/install-ssh2-0.12//usr/local)
Actually i don't know how to fix that :(
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.

« Last Edit: April 09, 2015, 07:21:43 AM by BullTen »

Offline
***
Re: LibSSH2
« Reply #2 on: April 10, 2015, 03:04:49 PM »
I've downloaded directly the autoinstallerd and worked like a charm.
Good job and thank you.
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.

Re: LibSSH2
« Reply #3 on: April 10, 2015, 06:02:07 PM »
Good to know it worked for u :)

Offline
***
Re: LibSSH2
« Reply #4 on: April 12, 2015, 06:52:35 AM »
LibSSH2 is my root bypass.

I need to exec some bash files as root because im not able to do with the normal users. I know this is about how that users has been created (cwp) because those bash don't fail if i exec with a regular user created with useradd.

I've read also about phpseclib, a pure PHP ssh implementation.
Seems more cool than LibSSH2 due to dependencies, but, at the moment i will stay using my new SSH power :D
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.

Offline
**
Re: LibSSH2
« Reply #5 on: November 01, 2015, 02:20:19 PM »
How to enable ssh2 functions on th cwp ?

Extension is installed and loaded, but i can't call ssh2 functions from web, everything is fine but cwp block ssh2 function to be called from the web.

Why is blocked and how to enable it?
« Last Edit: November 01, 2015, 02:55:24 PM by Gogo »

Offline
*****
Re: LibSSH2
« Reply #6 on: November 03, 2015, 10:10:22 AM »
Hi,
Nothing to block any extension.
Check if the module is loaded and does not have any troubles.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
**
Re: LibSSH2
« Reply #7 on: November 03, 2015, 11:53:04 AM »
Module is loaded and working, i can use it from terminal, but can't call ssh2 functions from the php. Function ssh2_connect doesn't exist. So thats mean something block ssh2 to be called from the php.

I'll try to recompile module again later.

Offline
*****
Re: LibSSH2
« Reply #8 on: November 03, 2015, 12:16:00 PM »
Yes, try. As I said before the CWP does not have any blocks.
Check your php.ini files.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services