Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding provision file to update PHP 5.6 PPA and packages #281

wants to merge 2 commits into from


Copy link

@uniacid uniacid commented Nov 28, 2016

Pending a proper vagrant box update I propose adding this provision script to update the PHP PPA repo and package due to the currently installed PPA packages being broken as referenced in issue: #273

I took the liberty of extending what @smutek had done with his provision script and made a few adjustments.

What does this do?

  • Removes and deletes obsolete and broken PPA


  • Add correct PHP PPA


  • Installs latest common PHP 5.6 packages
  • Removes old PHP packages that were previously installed
  • Configures Xdebug and adds composer to the PATH ENV var
  • Restarts Web Services
  • Optionally (left out for quicker deploy if you're not concerned with updates) you can enable updating all system packages by uncommenting the following line in the Vagrantfile:
    # Optional - Update all system packages, uncomment below to enable
    # config.vm.provision "provision", type: :shell, path: "provision/"

Updates were also based off recommended process here:

Copy link

@Wombatpm Wombatpm commented Nov 28, 2016

You are missing php5.6-xml. I needed to add that to get it to solve all of my problems. Thanks!

Copy link

@uniacid uniacid commented Dec 1, 2016

Thanks forgot about that one, if anyone else has any missing common modules needed please suggest them!

Copy link

@jongosling jongosling commented Jan 12, 2017

Thanks for this - saved me loads of time!
just one thing, for me I needed to change provision/ to point to
on line 50 instead of

Copy link

@jmcbee jmcbee commented Jan 13, 2017

Shouldn't this be fixed on the vagrant box itself instead of using a provisioner script?

Copy link

@anselmdk anselmdk commented Jan 13, 2017

Yeah, @whatnickcodes is on it, see #273

Copy link

@master-bob master-bob commented May 10, 2017


I had to make the following change on L37:
sudo apt-get autoremove -y
(add the -y). As well as the change suggested by @eurogos.

EDIT: though running the & at the same time by commenting out L12 in the Vagrantfile causes only the script to run. This is on vagrant 1.9.4

Copy link

@whatnickcodes whatnickcodes commented May 15, 2017

Closing this since the coming update addresses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants