[1] http://www.nginxtips.com/how-to-install-php-5-5-on-centosrhel-5-9-6-4/
[2] https://webtatic.com/packages/php55/
目前CentOS 的 yum 安裝 PHP 版本為 5.1,
如果要安裝 5.5 版本需要使用外部安裝。
1.依版本使用不同指令
For CentOS/RHEL 6.x:
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
For CentOS/RHEL 5.x:
rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
2.安裝 php5.5
yum install php55w
3.如要安裝 php 5.5.x opcode caches
yum install php55w-opcache4.安裝相關套件
yum install php55w-devel php55w-mbstring php55w-mcrypt php55w-gd php55w-mysql php55w-xml5.確認版本
php -v
額外套件安裝指令
php55w mod_php, php55w-zts
php55w-bcmath
php55w-cli php-cgi, php-pcntl, php-readline
php55w-common php-api, php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif, php-fileinfo, php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-json, php-libxml, php-openssl, php-pcre, php-pecl-Fileinfo, php-pecl-phar, php-pecl-zip, php-reflection, php-session, php-shmop, php-simplexml, php-sockets, php-spl, php-tokenizer, php-zend-abi, php-zip, php-zlib
php55w-dba
php55w-devel
php55w-embedded php-embedded-devel
php55w-enchant
php55w-fpm
php55w-gd
php55w-imap
php55w-interbase php_database, php-firebird
php55w-intl
php55w-ldap
php55w-mbstring
php55w-mcrypt
php55w-mssql
php55w-mysql php-mysqli, php_database
php55w-mysqlnd php-mysqli, php_database
php55w-odbc php-pdo_odbc, php_database
php55w-opcache php55w-pecl-zendopcache
php55w-pdo
php55w-pecl-memcache
php55w-pecl-xdebug
php55w-pgsql php-pdo_pgsql, php_database
php55w-process php-posix, php-sysvmsg, php-sysvsem, php-sysvshm
php55w-pspell
php55w-recode
php55w-snmp
php55w-soap
php55w-tidy
php55w-xml php-dom, php-domxml, php-wddx, php-xsl
php55w-xmlrpc
沒有留言:
張貼留言