php遇到的问题(冲突、启动、getcwd等)

Centos6.6

1、冲突conflicts

安装php7.0时,有冲突了。提示如下:

Transaction Check Error:
  file /apps/sh/php-fpm.sh from install of vip-php7-fpm-0:7.0.10-1.el6.x86_64 conflicts with file from package vip-php-fpm-5.6.11-1.x86_64
Error Summary

原因:5.6没卸载干净。

解决方案:卸载php,需使用yum remove命令。如下命令,先卸载干净php5.6,再装7.0即可。

yum -y remove vip-php-fpm-5.6.11*

yum install -y vip-php7-fpm.x86_64


2、unable to read what child say: Bad file descriptor (9)

php历史版本中有个bug,会导致php无法正常使用。启动php时会报ERROR,信息如下:

ERROR: unable to read what child say: Bad file descriptor (9)

解决办法:http://www.07net01.com/linux/jiejue_php_5_4_17deERROR__unable_to_read_what_child_say__Bad_569827_1377340565.html


3、getcwd cannot access parent directories

启动PHP时,提示信息:

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

原因:当前所在目录已经被删除了,重新cd到一个存在的目录,再重启即可。








  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值