`
hn67
  • 浏览: 79946 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Installing SSH2 Extension for PHP on CentOS 5

阅读更多

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
 
分享到:
评论

相关推荐

    Installing Serviceguard Extension for RAC.pdf

    Serviceguard Extension for RAC(简称SGeRAC)是HP提供的一款用于支持Oracle RAC集群软件在Serviceguard环境下运行的产品。它通过集成HP Serviceguard集群软件和Oracle RAC,实现了高可用性和负载均衡等功能。 ###...

    centos下安装网页版ssh-GateOne

    在本文中,我们将详细介绍如何在CentOS 6.8系统上安装和配置GateOne,这是一个基于HTML5技术的网页版SSH终端模拟器。在解决安装过程中遇到的问题时,特别是"AttributeError: 'module' object has no attribute '...

    Requirements For Installing Oracle10gR2 On RHEL 5&OEL 5 (x86_64)

    本文档详细介绍了在Red Hat Enterprise Linux(RHEL)5和Oracle Enterprise Linux(OEL)5(x86_64架构)上安装Oracle 10g Release 2数据库的具体要求。这些要求包括硬件配置、内核版本、以及必要的系统设置等关键...

    CentOS 7 Server Deployment Cookbook

    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 ...

    Step By Step guide for installing Oracle RAC 11gR2 on Linux

    在深入探讨如何逐步安装Oracle RAC 11gR2于Linux系统上的过程中,我们首先应当理解该版本中引入的一些新概念与特性,这将有助于更有效地进行部署和管理。 ### 1. 新概念概览 #### 1.1 SCAN(Single Client Access ...

    Wiley.Publishing.Fedora.Linux.Toolbox.1000+.Commands.for.Fedora.CentOS.and.Red.Hat.Power.Users.and.Red.Hat.Power.Users.2008.pdf

    #### Chapter 2: Installing Fedora and Adding Software This chapter delves into the installation process of Fedora and how to manage software packages. Important points covered include: - **...

    Exam Ref 70-410: Installing and Configuring Windows Server 2012 R2

    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 ...

    Installing_Nginx_With_PHP5_And_MySQL_Support_On_Debian_Squeeze.rar

    标题 "Installing Nginx With PHP5 And MySQL Support On Debian Squeeze" 涉及到的是在Debian Squeeze操作系统上安装Nginx web服务器、PHP5脚本语言支持以及MySQL数据库的过程。这是一个基础的LEMP(Linux、Nginx、...

    Installing MIUI on Meizu MX2

    确保手机至少有2GB的可用空间,避免解压MIUI ROM安装包,直接将其拷贝至手机根目录。 #### 恢复至官方Flyme 2.2系统 在安装新的ROM之前,建议先恢复至官方的Flyme 2.2系统,这有助于避免潜在的兼容性问题。在这一...

    如何在CentOS中安装PHP7.4的方法步骤

    在 CentOS 上安装 PHP 7.4 需要 EPEL(Extra Packages for Enterprise Linux)和 REMI 库。EPEL 是 Fedora 社区维护的一个项目,提供额外的软件包支持,而 REMI 库则包含多个 PHP 版本,包括最新的稳定版。运行以下...

    Installing TensorFlow for Java

    文件列表如下: Installing TensorFlow for Java _ TensorFlow.pdf; libtensorflow_jni-cpu-windows-x86_64-1.4.1.zip; libtensorflow-1.4.1.jar;

    CentOS5.3 操作系统应用打包

    ### CentOS 5.3 操作系统应用打包知识点详解 #### 一、背景介绍与目标概述 在企业级服务器环境中,为了提高效率与便捷性,往往需要对特定版本的操作系统进行定制化打包处理,以实现快速部署及特定软件的预安装。本...

    CentOS宝典.pdf

    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: ...

    Installing Your Driver on Windows Millennium

    Installing Your Driver on Windows Millennium INF File Guide

    树莓派CM4安装系统SSH登录.docx

    打开C盘下的config.txt文件,在末尾添加一行`dtoverlay=dwc2,dr_mode=host`,这允许USB设备工作在主机模式。如果你的底板需要此配置,否则可能无法通过USB连接。 接着,你需要为CM4配置静态IP地址以方便SSH连接。...

    Installing RAC on AIX

    在文档的第26页开始,详细介绍了如何安装ASM和数据库软件,包括如何指定非默认的监听器端口和SSH安装位置。 #### 安装Patchset 同样地,安装ASM和数据库软件的Patchset也非常重要,这部分内容在文档的第37页有详细...

    Docker Linux Centos6.5离线安装

    1、已安装的linux (以centos7为例) 2、离线安装包: ①、docker-engine-1.7.1-1.el7.centos.x86_64.rpm(可从以下链接下载http://www.oschina.net/news/64267/docker-1-7-1-final,centos7对应下载链接: ...

Global site tag (gtag.js) - Google Analytics