简体   繁体   中英

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 ). When I ran "pecl install -f ssh2" it gave me following error:

PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 3200 bytes) in /usr/share/pear/pearcmd.php on line 66

Should I change the value of pearcmd.php?

There is no need to modify your php.ini.

You may set the memory limit for the current command using -d . See: pecl help options

pecl -d memory_limit=500M install -f ssh2

You may install this module also using yum from epel repo:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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