Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-29, 15:06:34

Author Topic: Installatron requires ssh2 PHP extension for SFTP.  (Read 5953 times)

0 Members and 1 Guest are viewing this topic.

Offline Nickolai

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Installatron's tech support told me that Installatron requires ssh2 PHP extension for SFTP.

Can Kloxo-MR install this PHP extension for me?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Installatron requires ssh2 PHP extension for SFTP.
« Reply #1 on: 2014-05-04, 15:35:47 »
I think you missunderstand for 'ssh2 php extension'.

Execute ssh (aka bash) in php must be enable exec and etcetera function. Php for Kloxo-MR (aka php52s/53s/54s; depend on Kloxo-MR version) already enable this functions.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Nickolai

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Installatron requires ssh2 PHP extension for SFTP.
« Reply #2 on: 2014-05-04, 15:49:17 »
That's what they said:

Quote
SFTP is supported but does require the PHP ssh2 extension to be installed and enabled. Please ask your server administrator to install this PHP extension and then add the "extension=ssh2.so" line within /usr/local/installatron/etc/php.ini to enable it. Once that's completed the "SFTP" option will appear.

I have asked them for clarifications.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Installatron requires ssh2 PHP extension for SFTP.
« Reply #3 on: 2014-05-05, 04:50:37 »
Ok, need ssh2 extension for their php, lxphp.exe or regular php (aka php-branch)?.

And what's purpose for ssh2?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Nickolai

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Installatron requires ssh2 PHP extension for SFTP.
« Reply #4 on: 2014-05-05, 17:30:54 »
Ok, need ssh2 extension for their php, lxphp.exe or regular php (aka php-branch)?.

And what's purpose for ssh2?.
Honestly, I don't know the answer to either. I believe it's this one: ssh2.

Does Kloxo provides administrators with the power to add PHP extensions?

I have tried to install it manually with the following commands:
Code: [Select]
# Update system, just in case
yum update
# Install prerequisites
yum -y install php-pear php-devel libssh2-devel openssl-devel gcc
# Update PECL channel (on one of my systems, it complained that it needed updating)
pecl channel-update pecl.php.net
# Install the ssh2 PHP extension. It only contains beta releases, so we need to instruct it to install beta specifically, by adding '-beta'
# http://pecl.php.net/package/ssh2
# http://pear.php.net/manual/en/guide.users.commandline.installing.php
pecl install ssh2-beta
# add the module to php.ini by appending the following: extension=/usr/lib/php/modules/ssh2.so
nano /etc/php.ini

I'm getting the following error:
Code: [Select]
Loaded plugins: fastestmirror, priorities, protectbase, replace, security
Loading mirror speeds from cached hostfile
 * base: centos.schlundtech.de
 * extras: mirror.de.leaseweb.net
 * mratwork-epel: mirror.de.leaseweb.net
 * mratwork-ius: ius.cu.be
 * updates: mirror.amsiohosting.net
0 packages excluded due to repository protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-devel.i686 0:5.3.3-27.el6_5 will be installed
--> Processing Dependency: php(x86-32) = 5.3.3-27.el6_5 for package: php-devel-5.3.3-27.el6_5.i686
--> Running transaction check
---> Package php.i686 0:5.3.3-27.el6_5 will be installed
--> Processing Dependency: php-common(x86-32) = 5.3.3-27.el6_5 for package: php-5.3.3-27.el6_5.i686
--> Processing Dependency: php-cli(x86-32) = 5.3.3-27.el6_5 for package: php-5.3.3-27.el6_5.i686
--> Running transaction check
---> Package php-cli.i686 0:5.3.3-27.el6_5 will be installed
---> Package php-common.i686 0:5.3.3-27.el6_5 will be installed
--> Processing Conflict: php54-5.4.27-1.ius.el6.i686 conflicts php < 5.4
--> Finished Dependency Resolution
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Probably, because Kloxo is managing versions of PHP on its own, another approach is needed. How should I install that ssh2 PHP extension?
« Last Edit: 2014-05-05, 18:48:12 by Nickolai »

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Installatron requires ssh2 PHP extension for SFTP.
« Reply #5 on: 2014-05-06, 00:10:16 »
@Nickolai
You won't find php-pecl-ssh2 that's compatible with php 5.4 in the repos used by Kloxo-MR.
For testing purpose i can make ssh2.so and ssh2.ini compiled for php 5.4 branch available to you. From your yum command it looks like you are in a 32-bit system right?
This is one of the reasons i suggested to use repos of SCL for Kloxo-MR.

Kloxo-MR!

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.034 seconds with 22 queries.

web stats analysis