Installing the SSH2 PHP extension on CentOS is actually pretty simple. Although it isn’t available as a straight yum install, it boils down to a few short steps.
Firstly, we’re going to install the dependencies:
yum install gcc php-devel php-pear libssh2 libssh2-devel
These will allow us to build the SSH2 extension using pecl.
pecl install -f ssh2
After running that command, it should stop at a line like:
..
........done: 22,740 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
libssh2 prefix? [autodetect] :
All you have to do is hit Enter and it should detect the proper path.
Once the install is completed, you just have to tell PHP to load the
extension when it boots.
touch /etc/php.d/ssh2.ini
cat echo extension=ssh2.so > /etc/php.d/ssh2.ini
Now restart your webserver and test to see if the changes took effect.
/etc/init.d/httpd restart
php -m | grep ssh2
分享到:
相关推荐
Requirements For Installing Oracle10gR2 On RHEL 5&OEL 5 (x86_64)
在HPUX上配置双机serviceguard 后部署 oracle RAC
Step By Step guide for installing Oracle RAC 11gR2 on Linux
Installing MIUI on Meizu MX2
Deploy and manage today's essential services on an enterprise-class, open operating system About This Book * Configure and manage Linux servers in varying scenarios and for a range of business ...
Chapter 1: Installing CentOS Chapter 2: Configuring the System Chapter 3: Managing the System Chapter 4: Managing Packages Chapter 5: Administering the Filesystem Chapter 6: Providing Security Chapter...
Installing Activ Test on Your PC
Installing Oracle Database 11g on Linux
Installing RAC on AIX
ubuntu Installing swat for 802.11
Designed for experienced IT professionals ready to advance their status, Exam Ref focuses on the critical thinking and decision making acumen needed for success at the MCSA level. Focus on the ...
STK-Disk913x-Installing the ArrayGUIde Utiity Revision 1.6 on an
Installing Oracle 10G On Linux
sudo apt-get install php5 php5-common php5-cli php5-dev php5-mysql phpmyadmin php5-pgsql phppgadmin php5-gd php5-mcrypt php5-curl php-pear libapache2-mod-php5 php5-xdebug php5-codesniffer What is much...
Installing Oracle RAC 10g Release 2 on Linux x86(中)
Installing STLinux on Ubuntu
\Installing RAC on AIX 001.pdf
文件列表如下: Installing TensorFlow for Java _ TensorFlow.pdf; libtensorflow_jni-cpu-windows-x86_64-1.4.1.zip; libtensorflow-1.4.1.jar;
Chapter 2: Installing CentOS. Chapter 3: Getting Started with the Desktop. Chapter 4: Using Linux Commands. Part II Using CentOS. Chapter 5: Accessing and Running Applications. Chapter 6: ...