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

Closed
wants to merge 2 commits into from

Conversation

uniacid
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

ppa:ondrej/php5-5.6

  • Add correct PHP PPA

ppa:ondrej/php

  • 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/update.sh"

Updates were also based off recommended process here: https://github.com/oerdnj/deb.sury.org/wiki/PPA-migration-to-ppa:ondrej-php

@Wombatpm
Copy link

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

@uniacid
Copy link
Author

uniacid commented Dec 1, 2016

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

@jongosling
Copy link

Thanks for this - saved me loads of time!
just one thing, for me I needed to change provision/update-php56.sh to point to
/etc/php/5.6/apache2/conf.d/20-xdebug.ini
on line 50 instead of
/etc/php5/apache2/conf.d/20-xdebug.ini

@jmcbee
Copy link

jmcbee commented Jan 13, 2017

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

@anselmdk
Copy link

Yeah, @whatnickcodes is on it, see #273

@master-bob
Copy link

master-bob commented May 10, 2017

Thanks!

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 update.sh & update-php56.sh at the same time by commenting out L12 in the Vagrantfile causes only the update.sh script to run. This is on vagrant 1.9.4

@whatnickcodes
Copy link
Member

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants