PuPHPet Error: install php7.0-mysqlnd' returned 100
PuPHPet Error: install php7.0-mysqlnd' returned 100
我有一个问题运行一个PuPHPet Box,PHP服务没有启动,我在vagrant up
之后得到以下错误:
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php7.0-mysqlnd' returned 100: Reading package lists...
在此之后,php 服务无法启动:
==> Reading state information...
==> The following NEW packages will be installed:
==> php7.0-mysql
==> 0 upgraded, 1 newly installed, 0 to remove and 109 not upgraded.
==> Need to get 124 kB of archives.
==> After this operation, 486 kB of additional disk space will be used.
==> Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.0-mysql amd64 7.0.33-20+ubuntu16.04.1+deb.sury.org+1 [124 kB]
==> Fetched 124 kB in 0s (570 kB/s)
==> Selecting previously unselected package php7.0-mysql.
(Reading database ... 54197 files and directories currently installed.)
==> Preparing to unpack .../php7.0-mysql_7.0.33-20+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
==> Unpacking php7.0-mysql (7.0.33-20+ubuntu16.04.1+deb.sury.org+1) ...
==> Processing triggers for php7.0-fpm (7.0.33-20+ubuntu16.04.1+deb.sury.org+1) ...
==> Job for php7.0-fpm.service failed because a timeout was exceeded. See "systemctl status php7.0-fpm.service" and "journalctl -xe" for details.
机器正在启动,我可以ssh进去,手动安装php也失败了。
我在 Windows 10 和 Git Bash 上使用 Virtual Box。我尝试了所有可用的 PHP 版本(7.0、7.1、7.2),尝试了多次配置、销毁机器,并在 PuPHPet.com 上完成了创建过程。有什么建议吗?
过去几天我遇到了类似的问题。在通过 SSH 登录后 运行 journalctl -u php7.0-fpm
我得到了这个日志:
Feb 14 09:53:47 vagrant systemd[1]: Starting The PHP 7.0 FastCGI Process Manager...
Feb 14 09:53:47 vagrant update-alternatives[10343]: update-alternatives: error: alternative path /run/php/php7.0-fpm.sock doesn't exist
Feb 14 09:53:47 vagrant systemd[1]: php7.0-fpm.service: PID file /run/php/php7.0-fpm.pid not readable (yet?) after start-post: No such file or directory
Feb 14 09:55:17 vagrant systemd[1]: php7.0-fpm.service: Start-post operation timed out. Stopping.
Feb 14 09:55:17 vagrant systemd[1]: Failed to start The PHP 7.0 FastCGI Process Manager.
Feb 14 09:55:17 vagrant systemd[1]: php7.0-fpm.service: Unit entered failed state.
Feb 14 09:55:17 vagrant systemd[1]: php7.0-fpm.service: Failed with result 'timeout'.
Feb 14 09:55:22 vagrant systemd[1]: Stopped The PHP 7.0 FastCGI Process Manager.
原来是PID文件路径错误。
您可以更新 params.pp 中的 PID 文件 $pid_file
变量。
文件路径:puphpet/puppet/modules/puphpet/manifests/php/params.pp
将此值更新为 run/php/php7.0-fpm.pid
然后销毁并 运行 vagrant up
为我解决了这个问题。
puphpet 存储库中还有一个拉取请求,其中包含此更改:https://github.com/AOEpeople/puppet-puphpet/commit/e3b50ce72b922c2649ac82979b02edfd4e3b8c0a
我有一个问题运行一个PuPHPet Box,PHP服务没有启动,我在vagrant up
之后得到以下错误:
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php7.0-mysqlnd' returned 100: Reading package lists...
在此之后,php 服务无法启动:
==> Reading state information...
==> The following NEW packages will be installed:
==> php7.0-mysql
==> 0 upgraded, 1 newly installed, 0 to remove and 109 not upgraded.
==> Need to get 124 kB of archives.
==> After this operation, 486 kB of additional disk space will be used.
==> Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.0-mysql amd64 7.0.33-20+ubuntu16.04.1+deb.sury.org+1 [124 kB]
==> Fetched 124 kB in 0s (570 kB/s)
==> Selecting previously unselected package php7.0-mysql.
(Reading database ... 54197 files and directories currently installed.)
==> Preparing to unpack .../php7.0-mysql_7.0.33-20+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
==> Unpacking php7.0-mysql (7.0.33-20+ubuntu16.04.1+deb.sury.org+1) ...
==> Processing triggers for php7.0-fpm (7.0.33-20+ubuntu16.04.1+deb.sury.org+1) ...
==> Job for php7.0-fpm.service failed because a timeout was exceeded. See "systemctl status php7.0-fpm.service" and "journalctl -xe" for details.
机器正在启动,我可以ssh进去,手动安装php也失败了。
我在 Windows 10 和 Git Bash 上使用 Virtual Box。我尝试了所有可用的 PHP 版本(7.0、7.1、7.2),尝试了多次配置、销毁机器,并在 PuPHPet.com 上完成了创建过程。有什么建议吗?
过去几天我遇到了类似的问题。在通过 SSH 登录后 运行 journalctl -u php7.0-fpm
我得到了这个日志:
Feb 14 09:53:47 vagrant systemd[1]: Starting The PHP 7.0 FastCGI Process Manager...
Feb 14 09:53:47 vagrant update-alternatives[10343]: update-alternatives: error: alternative path /run/php/php7.0-fpm.sock doesn't exist
Feb 14 09:53:47 vagrant systemd[1]: php7.0-fpm.service: PID file /run/php/php7.0-fpm.pid not readable (yet?) after start-post: No such file or directory
Feb 14 09:55:17 vagrant systemd[1]: php7.0-fpm.service: Start-post operation timed out. Stopping.
Feb 14 09:55:17 vagrant systemd[1]: Failed to start The PHP 7.0 FastCGI Process Manager.
Feb 14 09:55:17 vagrant systemd[1]: php7.0-fpm.service: Unit entered failed state.
Feb 14 09:55:17 vagrant systemd[1]: php7.0-fpm.service: Failed with result 'timeout'.
Feb 14 09:55:22 vagrant systemd[1]: Stopped The PHP 7.0 FastCGI Process Manager.
原来是PID文件路径错误。
您可以更新 params.pp 中的 PID 文件 $pid_file
变量。
文件路径:puphpet/puppet/modules/puphpet/manifests/php/params.pp
将此值更新为 run/php/php7.0-fpm.pid
然后销毁并 运行 vagrant up
为我解决了这个问题。
puphpet 存储库中还有一个拉取请求,其中包含此更改:https://github.com/AOEpeople/puppet-puphpet/commit/e3b50ce72b922c2649ac82979b02edfd4e3b8c0a