下一个服务,php的支持
1、安装php组件
yum install php*
[root@masterdns ~]# yum install php*
Loading "security" plugin Loading "rhnplugin" plugin Loading "installonlyn" plugin This system is not registered with RHN. RHN support will be disabled. Setting up Install Process Setting up repositories rhel-Server 100% |=========================| 1.1 kB 00:00 rhel-VT 100% |=========================| 1.1 kB 00:00 Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for php-odbc to pack into transaction set. php-odbc-5.1.6-15.el5.i38 100% |=========================| 17 kB 00:00 ---> Package php-odbc.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php to pack into transaction set. php-5.1.6-15.el5.i386.rpm 100% |=========================| 18 kB 00:00 ---> Package php.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-devel to pack into transaction set. php-devel-5.1.6-15.el5.i3 100% |=========================| 43 kB 00:00 ---> Package php-devel.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-dba to pack into transaction set. php-dba-5.1.6-15.el5.i386 100% |=========================| 16 kB 00:00 ---> Package php-dba.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-pear to pack into transaction set. php-pear-1.4.9-4.noarch.r 100% |=========================| 20 kB 00:00 ---> Package php-pear.noarch 1:1.4.9-4 set to be updated ---> Downloading header for php-soap to pack into transaction set. php-soap-5.1.6-15.el5.i38 100% |=========================| 17 kB 00:00 ---> Package php-soap.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-mbstring to pack into transaction set. php-mbstring-5.1.6-15.el5 100% |=========================| 17 kB 00:00 ---> Package php-mbstring.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-ldap to pack into transaction set. php-ldap-5.1.6-15.el5.i38 100% |=========================| 17 kB 00:00 ---> Package php-ldap.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-imap to pack into transaction set. php-imap-5.1.6-15.el5.i38 100% |=========================| 17 kB 00:00 ---> Package php-imap.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-pgsql to pack into transaction set. php-pgsql-5.1.6-15.el5.i3 100% |=========================| 17 kB 00:00 ---> Package php-pgsql.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-snmp to pack into transaction set. php-snmp-5.1.6-15.el5.i38 100% |=========================| 17 kB 00:00 ---> Package php-snmp.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-mysql to pack into transaction set. php-mysql-5.1.6-15.el5.i3 100% |=========================| 18 kB 00:00 ---> Package php-mysql.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-xml to pack into transaction set. php-xml-5.1.6-15.el5.i386 100% |=========================| 18 kB 00:00 ---> Package php-xml.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-cli to pack into transaction set. php-cli-5.1.6-15.el5.i386 100% |=========================| 18 kB 00:00 ---> Package php-cli.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-common to pack into transaction set. php-common-5.1.6-15.el5.i 100% |=========================| 20 kB 00:00 ---> Package php-common.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-ncurses to pack into transaction set. php-ncurses-5.1.6-15.el5. 100% |=========================| 17 kB 00:00 ---> Package php-ncurses.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-gd to pack into transaction set. php-gd-5.1.6-15.el5.i386. 100% |=========================| 17 kB 00:00 ---> Package php-gd.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-pdo to pack into transaction set. php-pdo-5.1.6-15.el5.i386 100% |=========================| 17 kB 00:00 ---> Package php-pdo.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-xmlrpc to pack into transaction set. php-xmlrpc-5.1.6-15.el5.i 100% |=========================| 17 kB 00:00 ---> Package php-xmlrpc.i386 0:5.1.6-15.el5 set to be updated ---> Downloading header for php-bcmath to pack into transaction set. php-bcmath-5.1.6-15.el5.i 100% |=========================| 17 kB 00:00 ---> Package php-bcmath.i386 0:5.1.6-15.el5 set to be updated --> Running transaction check --> Processing Dependency: libc-client.so.1 for package: php-imap --> Processing Dependency: libodbcpsql.so.2 for package: php-odbc --> Processing Dependency: libodbc.so.1 for package: php-odbc --> Processing Dependency: net-snmp for package: php-snmp --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Downloading header for net-snmp to pack into transaction set. net-snmp-5.3.1-19.el5.i38 100% |=========================| 50 kB 00:00 ---> Package net-snmp.i386 1:5.3.1-19.el5 set to be updated ---> Downloading header for unixODBC to pack into transaction set. unixODBC-2.2.11-7.1.i386. 100% |=========================| 28 kB 00:00 ---> Package unixODBC.i386 0:2.2.11-7.1 set to be updated ---> Downloading header for libc-client to pack into transaction set. libc-client-2004g-2.2.1.i 100% |=========================| 6.8 kB 00:00 ---> Package libc-client.i386 0:2004g-2.2.1 set to be updated --> Running transaction check --> Processing Dependency: libsensors.so.3 for package: net-snmp --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Downloading header for lm_sensors to pack into transaction set. lm_sensors-2.10.0-3.1.i38 100% |=========================| 26 kB 00:00 ---> Package lm_sensors.i386 0:2.10.0-3.1 set to be updated --> Running transaction check Dependencies Resolved
=============================================================================
Package Arch Version Repository Size ============================================================================= Installing: php i386 5.1.6-15.el5 rhel-Server 1.2 M php-bcmath i386 5.1.6-15.el5 rhel-Server 31 k php-cli i386 5.1.6-15.el5 rhel-Server 2.2 M php-common i386 5.1.6-15.el5 rhel-Server 140 k php-dba i386 5.1.6-15.el5 rhel-Server 38 k php-devel i386 5.1.6-15.el5 rhel-Server 512 k php-gd i386 5.1.6-15.el5 rhel-Server 112 k php-imap i386 5.1.6-15.el5 rhel-Server 52 k php-ldap i386 5.1.6-15.el5 rhel-Server 33 k php-mbstring i386 5.1.6-15.el5 rhel-Server 968 k php-mysql i386 5.1.6-15.el5 rhel-Server 83 k php-ncurses i386 5.1.6-15.el5 rhel-Server 38 k php-odbc i386 5.1.6-15.el5 rhel-Server 50 k php-pdo i386 5.1.6-15.el5 rhel-Server 61 k php-pear noarch 1:1.4.9-4 rhel-Server 355 k php-pgsql i386 5.1.6-15.el5 rhel-Server 65 k php-snmp i386 5.1.6-15.el5 rhel-Server 27 k php-soap i386 5.1.6-15.el5 rhel-Server 135 k php-xml i386 5.1.6-15.el5 rhel-Server 93 k php-xmlrpc i386 5.1.6-15.el5 rhel-Server 54 k Installing for dependencies: libc-client i386 2004g-2.2.1 rhel-Server 518 k lm_sensors i386 2.10.0-3.1 rhel-Server 494 k net-snmp i386 1:5.3.1-19.el5 rhel-Server 700 k unixODBC i386 2.2.11-7.1 rhel-Server 832 k Transaction Summary
============================================================================= Install 24 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 8.7 M
Is this ok [y/N]: y Downloading Packages: (1/24): php-odbc-5.1.6-15 100% |=========================| 50 kB 00:00 (2/24): net-snmp-5.3.1-19 100% |=========================| 700 kB 00:00 (3/24): php-ldap-5.1.6-15 100% |=========================| 33 kB 00:00 (4/24): php-imap-5.1.6-15 100% |=========================| 52 kB 00:00 (5/24): php-snmp-5.1.6-15 100% |=========================| 27 kB 00:00 (6/24): php-bcmath-5.1.6- 100% |=========================| 31 kB 00:00 (7/24): php-cli-5.1.6-15. 100% |=========================| 2.2 MB 00:00 (8/24): php-ncurses-5.1.6 100% |=========================| 38 kB 00:00 (9/24): php-pdo-5.1.6-15. 100% |=========================| 61 kB 00:00 (10/24): php-5.1.6-15.el5 100% |=========================| 1.2 MB 00:00 (11/24): php-devel-5.1.6- 100% |=========================| 512 kB 00:00 (12/24): php-pear-1.4.9-4 100% |=========================| 355 kB 00:00 (13/24): php-soap-5.1.6-1 100% |=========================| 135 kB 00:00 (14/24): php-mbstring-5.1 100% |=========================| 968 kB 00:00 (15/24): php-xml-5.1.6-15 100% |=========================| 93 kB 00:00 (16/24): unixODBC-2.2.11- 100% |=========================| 832 kB 00:00 (17/24): php-dba-5.1.6-15 100% |=========================| 38 kB 00:00 (18/24): libc-client-2004 100% |=========================| 518 kB 00:00 (19/24): php-pgsql-5.1.6- 100% |=========================| 65 kB 00:00 (20/24): lm_sensors-2.10. 100% |=========================| 494 kB 00:00 (21/24): php-mysql-5.1.6- 100% |=========================| 83 kB 00:00 (22/24): php-common-5.1.6 100% |=========================| 140 kB 00:00 (23/24): php-gd-5.1.6-15. 100% |=========================| 112 kB 00:00 (24/24): php-xmlrpc-5.1.6 100% |=========================| 54 kB 00:00 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: php-common ####################### [ 1/24] Installing: php-pdo ####################### [ 2/24] Installing: php-cli ####################### [ 3/24] Installing: php ####################### [ 4/24] Installing: lm_sensors ####################### [ 5/24] Installing: net-snmp ####################### [ 6/24] Installing: libc-client ####################### [ 7/24] Installing: unixODBC ####################### [ 8/24] Installing: php-odbc ####################### [ 9/24] Installing: php-ldap ####################### [10/24] Installing: php-imap ####################### [11/24] Installing: php-snmp ####################### [12/24] Installing: php-bcmath ####################### [13/24] Installing: php-ncurses ####################### [14/24] Installing: php-devel ####################### [15/24] Installing: php-pear ####################### [16/24] Installing: php-soap ####################### [17/24] Installing: php-mbstring ####################### [18/24] Installing: php-xml ####################### [19/24] Installing: php-dba ####################### [20/24] Installing: php-pgsql ####################### [21/24] Installing: php-mysql ####################### [22/24] Installing: php-gd ####################### [23/24] Installing: php-xmlrpc ####################### [24/24] Installed: php.i386 0:5.1.6-15.el5 php-bcmath.i386 0:5.1.6-15.el5 php-cli.i386 0:5.1.6-15.el5 php-common.i386 0:5.1.6-15.el5 php-dba.i386 0:5.1.6-15.el5 php-devel.i386 0:5.1.6-15.el5 php-gd.i386 0:5.1.6-15.el5 php-imap.i386 0:5.1.6-15.el5 php-ldap.i386 0:5.1.6-15.el5 php-mbstring.i386 0:5.1.6-15.el5 php-mysql.i386 0:5.1.6-15.el5 php-ncurses.i386 0:5.1.6-15.el5 php-odbc.i386 0:5.1.6-15.el5 php-pdo.i386 0:5.1.6-15.el5 php-pear.noarch 1:1.4.9-4 php-pgsql.i386 0:5.1.6-15.el5 php-snmp.i386 0:5.1.6-15.el5 php-soap.i386 0:5.1.6-15.el5 php-xml.i386 0:5.1.6-15.el5 php-xmlrpc.i386 0:5.1.6-15.el5
Dependency Installed: libc-client.i386 0:2004g-2.2.1 lm_sensors.i386 0:2.10.0-3.1 net-snmp.i386 1:5.3.1-19.el5 unixODBC.i386 0:2.2.11-7.1 Complete! [root@masterdns ~]# |
这个是php的信息代码
放到主目录下
重新启动服务器
现在访问就会出现你服务器上PHP的相关资料
让apache支持php相当简单吧,默认是不用修改的
##################Michael分割线######################