[root@localhost ~]# yum install php
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Setting up Install
Process
Resolving Dependencies
--> Running transaction check
---> Package php.i686 0:5.3.3-3.el6_2.6 set to be updated
--> Processing Dependency: php-cli = 5.3.3-3.el6_2.6
for package: php-5.3.3-3.el6_2.6.i686
--> Processing Dependency: php-common = 5.3.3-3.el6_2.6
for package: php-5.3.3-3.el6_2.6.i686
--> Running transaction check
---> Package php-cli.i686 0:5.3.3-3.el6_2.6 set to be updated
---> Package php-common.i686 0:5.3.3-3.el6_2.6 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================
Package Arch Version Repository Size
=========================================================================================
Installing:
php i686 5.3.3-3.el6_2.6 updates 1.1 M
Installing
for dependencies:
php-cli i686 5.3.3-3.el6_2.6 updates 2.2 M
php-common i686 5.3.3-3.el6_2.6 updates 523 k
Transaction Summary
=========================================================================================
Install 3 Package(s)
Upgrade 0 Package(s)
Total download size: 3.8 M
Installed size: 12 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): php-5.3.3-3.el6_2.6.i686.rpm | 1.1 MB 00:06
(2/3): php-cli-5.3.3-3.el6_2.6.i686.rpm | 2.2 MB 00:13
(3/3): php-common-5.3.3-3.el6_2.6.i686.rpm | 523 kB 00:03
-----------------------------------------------------------------------------------------
Total 73 kB/s | 3.8 MB 00:53
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-common-5.3.3-3.el6_2.6.i686 1/3
Installing : php-cli-5.3.3-3.el6_2.6.i686 2/3
Installing : php-5.3.3-3.el6_2.6.i686 3/3
Installed:
php.i686 0:5.3.3-3.el6_2.6
Dependency Installed:
php-cli.i686 0:5.3.3-3.el6_2.6 php-common.i686 0:5.3.3-3.el6_2.6
Complete!
[root@localhost ~]# /etc/init.d/httpd restart
停止 httpd: [确定]
正在启动 httpd: [确定]
[root@localhost ~]#
[root@localhost ~]# yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirrors.sin3.sg.voxel.net
* extras: mirrors.sin3.sg.voxel.net
* updates: mirrors.sin3.sg.voxel.net
Setting up Install
Process
Resolving Dependencies
--> Running transaction check
---> Package php-gd.i686 0:5.3.3-3.el6_2.6 set to be updated
--> Processing Dependency: libXpm.so.4
for package: php-gd-5.3.3-3.el6_2.6.i686
---> Package php-imap.i686 0:5.3.3-3.el6_2.6 set to be updated
--> Processing Dependency: libc-client.so.2007
for package: php-imap-5.3.3-3.el6_2.6.i686
---> Package php-ldap.i686 0:5.3.3-3.el6_2.6 set to be updated
---> Package php-mysql.i686 0:5.3.3-3.el6_2.6 set to be updated
--> Processing Dependency: php-pdo
for package: php-mysql-5.3.3-3.el6_2.6.i686
---> Package php-odbc.i686 0:5.3.3-3.el6_2.6 set to be updated
--> Processing Dependency: libodbc.so.2
for package: php-odbc-5.3.3-3.el6_2.6.i686
---> Package php-pear.noarch 1:1.9.4-4.el6 set to be updated
---> Package php-xml.i686 0:5.3.3-3.el6_2.6 set to be updated
---> Package php-xmlrpc.i686 0:5.3.3-3.el6_2.6 set to be updated
--> Running transaction check
---> Package libXpm.i686 0:3.5.8-2.el6 set to be updated
---> Package libc-client.i686 0:2007e-11.el6 set to be updated
---> Package php-pdo.i686 0:5.3.3-3.el6_2.6 set to be updated
---> Package unixODBC.i686 0:2.2.14-11.el6 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
php-gd i686 5.3.3-3.el6_2.6 updates 102 k
php-imap i686 5.3.3-3.el6_2.6 updates 47 k
php-ldap i686 5.3.3-3.el6_2.6 updates 35 k
php-mysql i686 5.3.3-3.el6_2.6 updates 76 k
php-odbc i686 5.3.3-3.el6_2.6 updates 48 k
php-pear noarch 1:1.9.4-4.el6 base 393 k
php-xml i686 5.3.3-3.el6_2.6 updates 98 k
php-xmlrpc i686 5.3.3-3.el6_2.6 updates 51 k
Installing
for dependencies:
libXpm i686 3.5.8-2.el6 base 58 k
libc-client i686 2007e-11.el6 base 524 k
php-pdo i686 5.3.3-3.el6_2.6 updates 72 k
unixODBC i686 2.2.14-11.el6 base 382 k
Transaction Summary
================================================================================
Install 12 Package(s)
Upgrade 0 Package(s)
Total download size: 1.8 M
Installed size: 6.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/12): libXpm-3.5.8-2.el6.i686.rpm | 58 kB 00:00
(2/12): libc-client-2007e-11.el6.i686.rpm | 524 kB 00:04
(3/12): php-gd-5.3.3-3.el6_2.6.i686.rpm | 102 kB 00:00
(4/12): php-imap-5.3.3-3.el6_2.6.i686.rpm | 47 kB 00:00
(5/12): php-ldap-5.3.3-3.el6_2.6.i686.rpm | 35 kB 00:00
(6/12): php-mysql-5.3.3-3.el6_2.6.i686.rpm | 76 kB 00:00
(7/12): php-odbc-5.3.3-3.el6_2.6.i686.rpm | 48 kB 00:00
(8/12): php-pdo-5.3.3-3.el6_2.6.i686.rpm | 72 kB 00:00
(9/12): php-pear-1.9.4-4.el6.noarch.rpm | 393 kB 00:03
(10/12): php-xml-5.3.3-3.el6_2.6.i686.rpm | 98 kB 00:00
(11/12): php-xmlrpc-5.3.3-3.el6_2.6.i686.rpm | 51 kB 00:00
(12/12): unixODBC-2.2.14-11.el6.i686.rpm | 382 kB 00:03
--------------------------------------------------------------------------------
Total 117 kB/s | 1.8 MB 00:16
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:php-pear-1.9.4-4.el6.noarch 1/12
Installing : php-pdo-5.3.3-3.el6_2.6.i686 2/12
Installing : unixODBC-2.2.14-11.el6.i686 3/12
Installing : libXpm-3.5.8-2.el6.i686 4/12
Installing : libc-client-2007e-11.el6.i686 5/12
Installing : php-imap-5.3.3-3.el6_2.6.i686 6/12
Installing : php-gd-5.3.3-3.el6_2.6.i686 7/12
Installing : php-odbc-5.3.3-3.el6_2.6.i686 8/12
Installing : php-mysql-5.3.3-3.el6_2.6.i686 9/12
Installing : php-ldap-5.3.3-3.el6_2.6.i686 10/12
Installing : php-xml-5.3.3-3.el6_2.6.i686 11/12
Installing : php-xmlrpc-5.3.3-3.el6_2.6.i686 12/12
Installed:
php-gd.i686 0:5.3.3-3.el6_2.6 php-imap.i686 0:5.3.3-3.el6_2.6
php-ldap.i686 0:5.3.3-3.el6_2.6 php-mysql.i686 0:5.3.3-3.el6_2.6
php-odbc.i686 0:5.3.3-3.el6_2.6 php-pear.noarch 1:1.9.4-4.el6
php-xml.i686 0:5.3.3-3.el6_2.6 php-xmlrpc.i686 0:5.3.3-3.el6_2.6
Dependency Installed:
libXpm.i686 0:3.5.8-2.el6 libc-client.i686 0:2007e-11.el6
php-pdo.i686 0:5.3.3-3.el6_2.6 unixODBC.i686 0:2.2.14-11.el6
Complete!
[root@localhost ~]# /etc/init.d/httpd restart
停止 httpd: [确定]
正在启动 httpd: [确定]