简体   繁体   English

如何在Centos 6.4 64位上安装SSH2 for PHP 5.5?

[英]How do I install SSH2 for PHP 5.5 on Centos 6.4 64 bit?

I was installing SSH2 extenion for PHP 5.5, to fulfill magento's requirement (Ability to run scheduled jobs (crontab) with PHP 5 ). 我正在安装PHP 5.5的SSH2扩展,以满足magento的要求(能够使用PHP 5运行计划的作业(crontab))。 When I ran "pecl install -f ssh2" it gave me following error: 当我运行“ pecl install -f ssh2”时,出现以下错误:

PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 3200 bytes) in /usr/share/pear/pearcmd.php on line 66 PHP致命错误:在第66行的/usr/share/pear/pearcmd.php中,耗尽了262144字节的允许的内存大小(尝试分配3200字节)

Should I change the value of pearcmd.php? 我应该更改pearcmd.php的值吗?

There is no need to modify your php.ini. 无需修改您的php.ini。

You may set the memory limit for the current command using -d . 您可以使用-d设置当前命令的内存限制。 See: pecl help options 请参阅: pecl help options

pecl -d memory_limit=500M install -f ssh2

You may install this module also using yum from epel repo: 您也可以使用epel repo中的yum安装此模块:

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum install php-pecl-ssh2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM