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到一個存在的目錄,再重啓即可。








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