
我剛剛安裝了 php-fpm 5.6.8 但它無法啟動 -start php5-fpm
給了我一條Job failed to start
訊息。我發現幾個有類似問題的人,但似乎沒有一個答案對我有用。
我嘗試過的一個解決方案是使用 in 中的命令/etc/init/php5-fpm.conf
,該命令是/usr/sbin/php5-fpm --nodaemonize --fpm-config /etc/php5/fpm/php-fpm.conf
- This returned -bash: /usr/sbin/php5-fpm: No such file or directory
- 我認為這是一個關於可能出現問題的重要線索。嘗試在前台模式下運行php5-fpm -y /etc/php5/fpm/php-fpm.conf
告訴我The program 'php5-fpm' is currently not installed. You can install it by typing: sudo apt-get install php5-fpm
。這樣做會回傳以下結果:
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-fpm is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
webmin : Depends: libnet-ssleay-perl but it is not going to be installed
Depends: libauthen-pam-perl but it is not going to be installed
Depends: libio-pty-perl but it is not going to be installed
Depends: apt-show-versions but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
誰能弄清楚這裡發生了什麼事嗎?順便說一句,我正在使用 Ubuntu Server 14.04.2。