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到一个存在的目录,再重启即可。








發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章