centos7 安装php5.6
2017-05-19 15:11
381 查看
yum list installed | grep 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
yum install epel-release rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm[/code]check一下:yum list --enablerepo=remi --enablerepo=remi-php56 | grep php安装: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-xhprofyum install --enablerepo=remi --enablerepo=remi-php56 php-fpm
如需安装 seaslog:pecl install seaslog
seaslog的配置: vi /etc/php.ini
注意这里要是报一个这样的error:WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update Could not download from "http://pecl.php.net/get/SeasLog-1.6.9.tgz", cannot download "pecl/seaslog" (File http://101.96.10.65:80/pecl.php.net/get/SeasLog-1.6.9.tgz not valid (received: HTTP/1.0 404 Not Found )) Error: cannot download "pecl/SeasLog"就用 pecl channel-update pecl.php.net 更新一下就好了extension = seaslog.so seaslog.default_basepath = /log/seaslog-test seaslog.default_logger = default seaslog.disting_type = 1 seaslog.disting_by_hour = 0 seaslog.use_buffer = 1 seaslog.buffer_size = 100 seaslog.level = 0 seaslog.trace_error = 1 seaslog.trace_exception = 0 seaslog.default_datetime_format = "Y:m:d H:i:s" seaslog.appender = 1 seaslog.remote_host = 127.0.0.1 seaslog.remote_port = 514
相关文章推荐
- CentOS7安装配置LEMP(Nginx/PHP-FPM 5.6/MySQL 5.5)网站环境过程
- CentOS7 安装php5.6或7.0
- centos7 安装 nginx1.8+php5.6+postgresql9.4
- centOS7 安装PHP5.6版本
- centos7可用第三方源安装php5.6
- windows7 下 apache2.4 和 php5.5 及 mysql5.6 的安装与配置
- CentOS 6.3 安装 lnmp (php5.4,mysql5.6)
- PHP5.6在Unix 系统下的 Apache 2.x 下的安装
- centos5.6 安装mysql+php+nginx
- 64位 CentOS 5.6 中 Nginx + php + mysql 的编译安装
- mac 10.9.5 brew安装nginx 1.6.2 php 5.6 及php扩展
- 在CentOS release 5.6上安装gearman及php扩展错误记录
- [shell]CentOS 5.6安装web服务及相关软件(php 5.3, MySQL Server, memcache, spawn-fcgi, nginx, coreseek)
- 生产环境Centos LNMP编译安装nginx-1.6 MySQL-5.6 php-5.5
- CentOS7安装Mysql5.6
- PHP搭建(windows64+apache2.4.7+mysql-5.6+php5.5+phpMyAdmin)和Discuz安装
- CentOS5.6安装Apache Mysql PHP笔记
- centos 5.6 final的VPS安装php5.3.9,apache2.2.21,mysql 5.5.20支持.
- RHEL-5.6(X64)安装redis和phpredis
- php5.5-Apache2.4-mysql5.6环境安装(win7 64位)