MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: Nickolai on 2014-05-04, 15:29:32
-
Installatron's tech support told me that Installatron requires ssh2 PHP extension for SFTP.
Can Kloxo-MR install this PHP extension for me?
-
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.
-
That's what they said:
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.
-
Ok, need ssh2 extension for their php, lxphp.exe or regular php (aka php-branch)?.
And what's purpose for ssh2?.
-
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 (http://pecl.php.net/package/ssh2).
Does Kloxo provides administrators with the power to add PHP extensions?
I have tried to install it manually with the following commands:
# 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:
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?
-
@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.