具體方法:
(推薦教程:php視頻教程)
1、檢查當(dāng)前已安裝的PHP包
yum list installed | grep php
2、如果有已安裝的PHP包,先刪除他們
yum remove php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64
3、配置CentOS 7.0的yum源
yum install epel-release rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
4、使用yum list命令查看可安裝的包(Packege)
yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
5、安裝PHP5.6.x
yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof
6、查看已安裝的PHP版本。
php --version
7、安裝php-fpm
yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm
(相關(guān)推薦:php培訓(xùn))
8、重新Apache和php啟動(dòng)服務(wù)
$ sudo systemctl restart httpd $ sudo systemctl restart php-fpm
網(wǎng)站名稱:centos怎么安裝php擴(kuò)展
網(wǎng)站鏈接:http://www.rwnh.cn/article8/cpicip.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供商城網(wǎng)站、全網(wǎng)營(yíng)銷推廣、建站公司、品牌網(wǎng)站建設(shè)、網(wǎng)站排名、營(yíng)銷型網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
營(yíng)銷型網(wǎng)站建設(shè)知識(shí)