首頁 > 後端開發 > php教程 > RHEL 5 安装PHP

RHEL 5 安装PHP

WBOY
發布: 2016-06-23 14:32:58
原創
1128 人瀏覽過

安装PHP:

[root@localhost Server]# ls *php*php-5.1.6-5.el5.i386.rpm         php-imap-5.1.6-5.el5.i386.rpm      php-pear-1.4.9-4.noarch.rpmphp-bcmath-5.1.6-5.el5.i386.rpm  php-ldap-5.1.6-5.el5.i386.rpm      php-pgsql-5.1.6-5.el5.i386.rpmphp-cli-5.1.6-5.el5.i386.rpm     php-mbstring-5.1.6-5.el5.i386.rpm  php-snmp-5.1.6-5.el5.i386.rpmphp-common-5.1.6-5.el5.i386.rpm  php-mysql-5.1.6-5.el5.i386.rpm     php-soap-5.1.6-5.el5.i386.rpmphp-dba-5.1.6-5.el5.i386.rpm     php-ncurses-5.1.6-5.el5.i386.rpm   php-xml-5.1.6-5.el5.i386.rpmphp-devel-5.1.6-5.el5.i386.rpm   php-odbc-5.1.6-5.el5.i386.rpm      php-xmlrpc-5.1.6-5.el5.i386.rpmphp-gd-5.1.6-5.el5.i386.rpm      php-pdo-5.1.6-5.el5.i386.rpm[root@localhost Server]# rpm -ivh php-5.1.6-5.el5.i386.rpm warning: php-5.1.6-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186error: Failed dependencies:        libgmp.so.3 is needed by php-5.1.6-5.el5.i386        php-cli = 5.1.6-5.el5 is needed by php-5.1.6-5.el5.i386        php-common = 5.1.6-5.el5 is needed by php-5.1.6-5.el5.i386[root@localhost Server]# rpm -ivh php-cli-5.1.6-5.el5.i386.rpm warning: php-cli-5.1.6-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186error: Failed dependencies:        libgmp.so.3 is needed by php-cli-5.1.6-5.el5.i386        php-common = 5.1.6-5.el5 is needed by php-cli-5.1.6-5.el5.i386[root@localhost Server]# ls *gmp*gmp-4.1.4-10.el5.i386.rpm  gmp-devel-4.1.4-10.el5.i386.rpm[root@localhost Server]# rpm -ivh gmp-4.1.4-10.el5.i386.rpm warning: gmp-4.1.4-10.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186Preparing...                ########################################### [100%]   1:gmp                    ########################################### [100%][root@localhost Server]# rpm -ivh php-cli-5.1.6-5.el5.i386.rpm warning: php-cli-5.1.6-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186error: Failed dependencies:        php-common = 5.1.6-5.el5 is needed by php-cli-5.1.6-5.el5.i386[root@localhost Server]# rpm -ivh php-common-5.1.6-5.el5.i386.rpm warning: php-common-5.1.6-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186Preparing...                ########################################### [100%]   1:php-common             ########################################### [100%][root@localhost Server]# rpm -ivh php-cli-5.1.6-5.el5.i386.rpm warning: php-cli-5.1.6-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186Preparing...                ########################################### [100%]   1:php-cli                ########################################### [100%][root@localhost Server]# rpm -ivh php-5.1.6-5.el5.i386.rpm warning: php-5.1.6-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186Preparing...                ########################################### [100%]   1:php                    ########################################### [100%][root@localhost Server]# 
登入後複製

  

安装完成后,在/etc/httpd/conf.d目录下面,会多出一个php.conf来。这个目录是apache自动追加配置的地方。因此,只要重新启动apache,php就被支持了(以模块化方式)。

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板