RHEL5 install PHP

Source: Internet
Author: User
Tags gmp
Install PHP in RHEL5:

[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]# 

  

After the installation is complete, a php. conf file will be added under the/etc/httpd/conf. d Directory. This directory is where apache automatically appends the configuration. Therefore, php is supported (in modular mode) as long as apache is restarted ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.