PHP5(yum) インストール
インストールされているか確認
[root@linux ~]# yum list | grep php
php.i386 5.1.6-15.el5 base ←■ インストールされていない場合「base」と表示
php.i386 5.1.6-15.el5 installed ←■ インストールされていない場合「installed」と表示
php-bcmath.i386 5.1.6-15.el5 base
php-cli.i386 5.1.6-15.el5 base
php-common.i386 5.1.6-15.el5 base
php-dba.i386 5.1.6-15.el5 base
php-dbase.i386 5.1.6-15.el5.centos.1 extras
php-devel.i386 5.1.6-15.el5 base
php-gd.i386 5.1.6-15.el5 base
php-imap.i386 5.1.6-15.el5 base
php-ldap.i386 5.1.6-15.el5 base
php-mbstring.i386 5.1.6-15.el5 base
php-mcrypt.i386 5.1.6-15.el5.centos.1 extras
php-mhash.i386 5.1.6-15.el5.centos.1 extras
php-mssql.i386 5.1.6-15.el5.centos.1 extras
php-mysql.i386 5.1.6-15.el5 base
php-ncurses.i386 5.1.6-15.el5 base
php-odbc.i386 5.1.6-15.el5 base
php-pdo.i386 5.1.6-15.el5 base
php-pear.noarch 1:1.4.9-4 base
php-pear-Auth-SASL.noarch 1.0.2-4.el5.centos extras
php-pear-DB.noarch 1.7.13-1.el5.centos extras
php-pear-Date.noarch 1.4.7-2.el5.centos extras
php-pear-File.noarch 1.2.2-1.el5.centos extras
php-pear-HTTP-Request.noarch 1.4.2-1.el5.centos extras
php-pear-Log.noarch 1.9.13-1.el5.centos extras
php-pear-MDB2.noarch 2.4.1-2.el5.centos extras
php-pear-MDB2-Driver-mysql.noarch 1.4.1-3.el5.centos extras
php-pear-Mail.noarch 1.1.14-1.el5.centos extras
php-pear-Mail-Mime.noarch 1.4.0-1.el5.centos extras
php-pear-Net-SMTP.noarch 1.2.10-1.el5.centos extras
php-pear-Net-Sieve.noarch 1.1.5-2.el5.centos extras
php-pear-Net-Socket.noarch 1.0.8-1.el5.centos extras
php-pear-Net-URL.noarch 1.0.15-1.el5.centos extras
php-pecl-Fileinfo.i386 1.0.4-3.el5.centos extras
php-pecl-memcache.i386 2.2.1-1.el5.centos extras
php-pgsql.i386 5.1.6-15.el5 base
php-readline.i386 5.1.6-15.el5.centos.1 extras
php-snmp.i386 5.1.6-15.el5 base
php-soap.i386 5.1.6-15.el5 base
php-tidy.i386 5.1.6-15.el5.centos.1 extras
php-xml.i386 5.1.6-15.el5 base
php-xmlrpc.i386 5.1.6-15.el5 base
[root@linux ~]#
インストール
[root@linux ~]# yum -y install php
~ 中略 ~
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
php i386 5.1.6-15.el5 base 1.2 M
Installing for dependencies:
php-cli i386 5.1.6-15.el5 base 2.3 M
php-common i386 5.1.6-15.el5 base 140 k
Transaction Summary
=============================================================================
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 3.6 M
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: php-common ######################### [1/3]
Installing: php-cli ######################### [2/3]
Installing: php ######################### [3/3]
Installed: php.i386 0:5.1.6-15.el5
Dependency Installed: php-cli.i386 0:5.1.6-15.el5 php-common.i386 0:5.1.6-15.el5
Complete!
[root@linux ~]#
拡張モジュール インストール
適宜、必要と思われるモジュールをインストールする
[root@linux ~]# yum -y install php-devel php-gd php-mbstring php-mysql php-pdo php-pear php-xml php-imap
~ 中略 ~
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
php-devel i386 5.1.6-15.el5 base 512 k
php-gd i386 5.1.6-15.el5 base 111 k
php-imap i386 5.1.6-15.el5 base 51 k
php-mbstring i386 5.1.6-15.el5 base 968 k
php-mysql i386 5.1.6-15.el5 base 83 k
php-pdo i386 5.1.6-15.el5 base 61 k
php-pear noarch 1:1.4.9-4 base 355 k
php-xml i386 5.1.6-15.el5 base 93 k
Transaction Summary
=============================================================================
Install 8 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 2.2 M
Downloading Packages:
(1/1): php-imap-5.1.6-15. 100% |=========================| 51 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: php-pdo ######################### [1/8]
Installing: php-devel ######################### [2/8]
Installing: php-pear ######################### [3/8]
Installing: php-imap ######################### [4/8]
Installing: php-mysql ######################### [5/8]
Installing: php-xml ######################### [6/8]
Installing: php-gd ######################### [7/8]
Installing: php-mbstring ######################### [8/8]
Installed: 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-mbstring.i386 0:5.1.6-15.el5 php-mysql.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-xml.i386 0:5.1.6-15.el5
Complete!
[root@linux ~]#
※ PHP5 設定ファイル 編集 → CentOS/PHP/PHP5/設定
0 件のコメント:
コメントを投稿