关闭

centos6.5 yum安装php7

2439人阅读 评论(0) 收藏 举报
分类:
安装开发包和库文件
# yum -y install ntp make openssl openssl-devel pcre pcre-devel libpng libpng-devel libjpeg-6b libjpeg-devel-6b freetype freetype-devel gd gd-devel zlib zlib-devel gcc gcc-c++ libXpm libXpm-devel ncurses ncurses-devel libmcrypt libmcrypt-devel libxml2 libxml2-devel imake autoconf automake screen sysstat compat-libstdc++-33 curl curl-devel

To install, first you must add the Webtatic EL yum repository information corresponding to your CentOS/RHEL version to yum:
CentOS/RHEL 7.x:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

CentOS/RHEL 6.x:
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

安装php

# yum install php70w lighttpd-fastcgi php70w-cli php70w-mysql php70w-gd php70w-imap php70w-ldap php70w-odbc php70w-pear php70w-xml php70w-xmlrpc php70w-mbstring php70w-mcrypt php70w-mssql php70w-snmp php70w-soap php70w-openssl openssl

# yum install php56w lighttpd-fastcgi php56w-cli php56w-mysql php56w-gd php56w-imap php56w-ldap php56w-odbc php56w-pear php56w-xml php56w-xmlrpc php56w-mbstring php56w-mcrypt php56w-mssql php56w-snmp php56w-soap php56w-openssl openssl


可能会不支持utf8mb4 下次改成

# yum install php70w lighttpd-fastcgi php70w-cli php70w-mysqlnd php70w-gd php70w-imap php70w-ldap php70w-odbc php70w-pear php70w-xml php70w-xmlrpc php70w-mbstring php70w-mcrypt php70w-mssql php70w-snmp php70w-soap php70w-openssl openssl


安装php和所需组件使PHP支持MySQL、FastCGI模式

# yum install php70w-tidy php70w-common php70w-devel php70w-fpm php70w-mysql

# yum install php56w-tidy php56w-common php56w-devel php56w-fpm php56w-mysql

# service php-fpm start
# chkconfig --levels 235 php-fpm on

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:26447次
    • 积分:904
    • 等级:
    • 排名:千里之外
    • 原创:65篇
    • 转载:14篇
    • 译文:0篇
    • 评论:0条
    文章分类