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
base: master
from

Conversation

Projects
None yet
7 participants
@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

This comment has been minimized.

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!

@uniacid

This comment has been minimized.

uniacid commented Dec 1, 2016

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

@eurogos

This comment has been minimized.

eurogos commented Jan 12, 2017

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

This comment has been minimized.

jmcbee commented Jan 13, 2017

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

@anselmdk

This comment has been minimized.

anselmdk commented Jan 13, 2017

Yeah, @whatnickcodes is on it, see #273

@master-bob

This comment has been minimized.

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

This comment has been minimized.

Member

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