I got a problem running a PuPHPet Box, the PHP Service does not start, I get the following error after 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...
After This, the php service fails to start:
==> 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.
The machine is starting and I can ssh into it, manually installing php also fails.
I am using Virtual Box on Windows 10 and Git Bash. I tried all available PHP-Versions (7.0, 7.1, 7.2), tried several times provisioning, destroying the machine, going through the creation process on PuPHPet.com. Any suggestions?
I've had a similar issue the past couple of days. After SSHing into the box and running
journalctl -u php7.0-fpmI got this log:Turns out the PID file path is wrong.
You can update the PID file
$pid_filevariable within the params.pp. File path:puphpet/puppet/modules/puphpet/manifests/php/params.ppUpdating this value to
run/php/php7.0-fpm.pidthen destroying and runningvagrant upfixed this issue for me.There's also a pull request within the puphpet repo with this change: https://github.com/AOEpeople/puppet-puphpet/commit/e3b50ce72b922c2649ac82979b02edfd4e3b8c0a