VDD 8.x-1.x-dev (2015-Sep-16) contains PHP version 5.5 (5.5.9-1ubuntu4.16) but its active support ended 10 months ago on 10th July 2015 and security support ends soon on 10th July 2016:

https://secure.php.net/supported-versions.php

Please could you release a new VDD with an updated PHP version, and matching Xbebug?

Thank you!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hugovk created an issue. See original summary.

LiamPower’s picture

This may be a useful link for a starting point: https://github.com/chef-cookbooks/php/issues/162
I believe it will need the latest php cookbook

NumerousHats’s picture

Is there any way to upgrade to at least PHP 5.6.x?

In a clean vdd-8.x-1.x-dev install, drush fails with the message "Your command line PHP installation is too old. Drush requires at least PHP 5.6.0."

pminf’s picture

@MAndrecPhD: To make it work with PHP5.5 check https://www.drupal.org/node/2789071. But anyway I would prefer a PHP update to 5.6.

pminf’s picture

Priority: Normal » Major

As hugovk pointed out support for PHP5.5 has ended. This makes VDD currently unusable.

LiamPower’s picture

The attached patch will update PHP to be 5.6.

It is against 8.x-1.x-dev, but it's worth noting that ruby needs to be updated to 2.2 which can be found here: https://www.drupal.org/node/2745239

As this the ruby patch hasn't been committed yet, this patch doesn't work directly with the ruby patch and will need to be re-rolled.

LiamPower’s picture

Status: Active » Needs review
hugovk’s picture

ericjenkins’s picture

I did not see the need for the python-software-properties line, but I did test and confirm that adding the repository ppa:ondrej/php5-5.6 as an entry to initial.sh works as intended. Thank you, @LiamPower!

EDIT: It turns out the Ubuntu PPA url referenced by @LiamPower in patch #6 no longer exists!

The PHP5-5.6 PPA is referenced on this master page here: https://deb.sury.org/

But, the PHP5-5.6 PPA link is broken: https://launchpad.net/~ondrej/+archive/ubuntu/php5-5.6/

I was not able to come up with an easy way to update this Vagrant Trusty64 box to PHP5.6, and I am giving up on making PHP5.6 work for now.

I agree that this should be re-rolled along with the Ruby patch found here: #2745239: Ruby version >=2 Required

ericjenkins’s picture

Status: Needs review » Needs work
LiamPower’s picture

This is the updated one. https://launchpad.net/~ondrej/+archive/ubuntu/php

It bundles a couple of different PHP versions together and I think it may need more work than my other patch.

If this vagrant box is no longer going to be supported (Which it hasn't been for a while), it may be worth looking at something like https://www.drupal.org/project/drupalvm which is based on ansible and very well supported.

pminf’s picture

I've tried Drupal VM but did not get it working on Windows, especially because of Ansible. VDD is based on Chef, which I prefer on Windows (no issues yet). So please, don't give up VDD :-)

ericjenkins’s picture

I completely empathize with you, @pminf . DrupalVM has been working to improve its Windows friendliness. I haven't tried it in Windows for over a year, so I can't speak to how it runs now. But I do agree that Chef is historically much more Windows-friendly. And I, too, have leaned toward Chef for that reason. Hopefully VDD will continue to be supported! I am certainly willing to do my part to keep it going.

LiamPower’s picture

This patch should now make php 5.6 work again. It will require the patches in the following issues to be applied as well:

LiamPower’s picture

Status: Needs work » Needs review
LiamPower’s picture

@ericjenkins any chance you can test this? If we can get PHP 5.6 in to dev then we can probably get a working release out

DamienMcKenna’s picture

Would it be worthwhile suggesting moving to PHP 7 instead of 5.6?

LiamPower’s picture

I feel it would probably be best to do a larger overhaul of VDD to move it to PHP 7 personally.

awm’s picture

has this been tested?
I can give it a shot this week and see if there are issues.

LiamPower’s picture

I just tried to apply this patch and it would appear I generated the patch from the wrong folder (It was a version of VDD I was trying other things on as well) so it would not apply.

I have re-generated a patch which doesn't have all of the bits that break it. If you could test that it would be great.

eworwa’s picture

Hi, I applied the patch in #20 and did apply ok, but I got some errors when provisioning the box

==> default: ================================================================================
==> default: Error executing action `install` on resource 'package[php5.6]'
==> default: ================================================================================
==> default: 
==> default: 
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received '100'
==> default: ---- Begin output of apt-get -q -y install php5.6=5.6.33-1+ubuntu14.04.1+deb.sury.org+1 ----
==> default: STDOUT: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following packages were automatically installed and are no longer required:
==> default:   acl at-spi2-core chef-zero colord dconf-gsettings-backend dconf-service
==> default:   erubis hicolor-icon-theme libasound2 libasound2-data libatk-bridge2.0-0
==> default:   libatk1.0-0 libatk1.0-data libatspi2.0-0 libcairo-gobject2
==> default:   libcanberra-gtk3-0 libcanberra-gtk3-module libcanberra0 libcolord1
==> default:   libcolorhug1 libdconf1 libexif12 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common
==> default:   libgphoto2-6 libgphoto2-l10n libgphoto2-port10 libgtk-3-0 libgtk-3-bin
==> default:   libgtk-3-common libgudev-1.0-0 libgusb2 libieee1284-3 libjasper1 liblcms2-2
==> default:   libnotify-bin libnotify4 libogg0 libsane libsane-common libv4l-0
==> default:   libv4lconvert0 libvorbis0a libvorbisfile3 libwayland-client0
==> default:   libwayland-cursor0 libxcursor1 libxfont1 libxkbcommon0 libxkbfile1
==> default:   notification-daemon ohai ruby-diff-lcs ruby-erubis ruby-hashie ruby-highline
==> default:   ruby-ipaddress ruby-mime-types ruby-mixlib-authentication ruby-mixlib-cli
==> default:   ruby-mixlib-config ruby-mixlib-log ruby-mixlib-shellout ruby-net-ssh
==> default:   ruby-net-ssh-gateway ruby-net-ssh-multi ruby-rack ruby-rest-client
==> default:   ruby-sigar ruby-systemu ruby-yajl sound-theme-freedesktop x11-xkb-utils
==> default:   xfonts-base xfonts-encodings xfonts-utils xserver-common xserver-xorg-core
==> default: Use 'apt-get autoremove' to remove them.
==> default: The following extra packages will be installed:
==> default:   libapache2-mod-php5.6 libssl1.1 php-common php5.6-cli php5.6-common
==> default:   php5.6-json php5.6-opcache php5.6-readline
==> default: The following NEW packages will be installed:
==> default:   libapache2-mod-php5.6 libssl1.1 php-common php5.6 php5.6-cli php5.6-common
==> default:   php5.6-json php5.6-opcache php5.6-readline
==> default: 0 upgraded, 9 newly installed, 0 to remove and 125 not upgraded.
==> default: Need to get 6,912 kB of archives.
==> default: After this operation, 19.8 MB of additional disk space will be used.
==> default: Err http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main libssl1.1 amd64 1.1.0g-2.1+ubuntu14.04.1+deb.sury.org+1
==> default:   Could not resolve 'ppa.launchpad.net'
==> default: Err http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main php-common all 1:59+ubuntu14.04.1+deb.sury.org+1
==> default:   Could not resolve 'ppa.launchpad.net'
==> default: Err http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main php5.6-common amd64 5.6.33-1+ubuntu14.04.1+deb.sury.org+1
==> default:   Could not resolve 'ppa.launchpad.net'
==> default: Err http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main php5.6-json amd64 5.6.33-1+ubuntu14.04.1+deb.sury.org+1
==> default:   Could not resolve 'ppa.launchpad.net'
==> default: Err http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main php5.6-opcache amd64 5.6.33-1+ubuntu14.04.1+deb.sury.org+1
==> default:   Could not resolve 'ppa.launchpad.net'
==> default: Err http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main php5.6-readline amd64 5.6.33-1+ubuntu14.04.1+deb.sury.org+1
==> default:   Could not resolve 'ppa.launchpad.net'
==> default: Err http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main php5.6-cli amd64 5.6.33-1+ubuntu14.04.1+deb.sury.org+1
==> default:   Could not resolve 'ppa.launchpad.net'
==> default: Err http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main libapache2-mod-php5.6 amd64 5.6.33-1+ubuntu14.04.1+deb.sury.org+1
==> default:   Could not resolve 'ppa.launchpad.net'
==> default: Err http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main php5.6 all 5.6.33-1+ubuntu14.04.1+deb.sury.org+1
==> default:   Could not resolve 'ppa.launchpad.net'
==> default: STDERR: E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2.1+ubuntu14.04.1+deb.sury.org+1_amd64.deb  Could not resolve 'ppa.launchpad.net'
==> default: 
==> default: E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php-defaults/php-common_59+ubuntu14.04.1+deb.sury.org+1_all.deb  Could not resolve 'ppa.launchpad.net'
==> default: 
==> default: E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php5.6/php5.6-common_5.6.33-1+ubuntu14.04.1+deb.sury.org+1_amd64.deb  Could not resolve 'ppa.launchpad.net'
==> default: 
==> default: E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php5.6/php5.6-json_5.6.33-1+ubuntu14.04.1+deb.sury.org+1_amd64.deb  Could not resolve 'ppa.launchpad.net'
==> default: 
==> default: E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php5.6/php5.6-opcache_5.6.33-1+ubuntu14.04.1+deb.sury.org+1_amd64.deb  Could not resolve 'ppa.launchpad.net'
==> default: 
==> default: E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php5.6/php5.6-readline_5.6.33-1+ubuntu14.04.1+deb.sury.org+1_amd64.deb  Could not resolve 'ppa.launchpad.net'
==> default: 
==> default: E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php5.6/php5.6-cli_5.6.33-1+ubuntu14.04.1+deb.sury.org+1_amd64.deb  Could not resolve 'ppa.launchpad.net'
==> default: 
==> default: E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php5.6/libapache2-mod-php5.6_5.6.33-1+ubuntu14.04.1+deb.sury.org+1_amd64.deb  Could not resolve 'ppa.launchpad.net'
==> default: 
==> default: E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php5.6/php5.6_5.6.33-1+ubuntu14.04.1+deb.sury.org+1_all.deb  Could not resolve 'ppa.launchpad.net'
==> default: 
==> default: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
==> default: ---- End output of apt-get -q -y install php5.6=5.6.33-1+ubuntu14.04.1+deb.sury.org+1 ----
==> default: Ran apt-get -q -y install php5.6=5.6.33-1+ubuntu14.04.1+deb.sury.org+1 returned 100
==> default: 
==> default: 
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In /vagrant/chef/cookbooks/core/vdd/recipes/php.rb
==> default: 
==> default:  16:   package pkg do
==> default:  17:     action :install
==> default:  18:   end
==> default:  19: end
==> default: 
==> default: 
==> default: 
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in /vagrant/chef/cookbooks/core/vdd/recipes/php.rb:16:in `block in from_file'
==> default: 
==> default: package("php5.6") do
==> default:   action [:install]
==> default:   retries 0
==> default:   retry_delay 2
==> default:   guard_interpreter :default
==> default:   package_name "php5.6"
==> default:   version "5.6.33-1+ubuntu14.04.1+deb.sury.org+1"
==> default:   cookbook_name :vdd
==> default:   recipe_name "php"
==> default: end
==> default: 
==> default: 
==> default: 
==> default: [2018-01-26T11:47:57+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default: [2018-01-26T11:47:57+00:00] INFO: execute[a2enmod auth_basic] sending reload action to service[apache2] (delayed)
==> default: Recipe: apache2::default
==> default:   * service[apache2] action reload
==> default: 
==> default: ================================================================================
==> default: Error executing action `reload` on resource 'service[apache2]'
==> default: ================================================================================
==> default: 
==> default: 
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received '1'
==> default: ---- Begin output of /usr/sbin/invoke-rc.d apache2 reload && sleep 1 ----
==> default: STDOUT: * Reloading web server apache2
==> default:  * 
==> default:  * The apache2 configtest failed. Not doing anything.
==> default: STDERR: Output of config test was:
==> default: [Fri Jan 26 11:47:57.559777 2018] [core:warn] [pid 4119] AH00117: Ignoring deprecated use of DefaultType in line 108 of /etc/apache2/apache2.conf.
==> default: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:5
==> default: AH00526: Syntax error on line 30 of /etc/apache2/conf-enabled/phpmyadmin.conf:
==> default: Unknown Authz provider: valid-user
==> default: Action 'configtest' failed.
==> default: The Apache error log may have more information.
==> default: invoke-rc.d: initscript apache2, action "reload" failed.
==> default: ---- End output of /usr/sbin/invoke-rc.d apache2 reload && sleep 1 ----
==> default: Ran /usr/sbin/invoke-rc.d apache2 reload && sleep 1 returned 1
==> default: 
==> default: 
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In /vagrant/chef/cookbooks/berks/apache2/recipes/default.rb
==> default: 
==> default: 188: service 'apache2' do
==> default: 189:   case node['platform_family']
==> default: 190:   when 'rhel', 'fedora', 'suse'
==> default: 191:     service_name 'httpd'
==> default: 192:     # If restarted/reloaded too quickly httpd has a habit of failing.
==> default: 193:     # This may happen with multiple recipes notifying apache to restart - like
==> default: 194:     # during the initial bootstrap.
==> default: 195:     restart_command '/sbin/service httpd restart && sleep 1'
==> default: 196:     reload_command '/sbin/service httpd reload && sleep 1'
==> default: 197:   when 'debian'
==> default: 198:     service_name 'apache2'
==> default: 199:     restart_command '/usr/sbin/invoke-rc.d apache2 restart && sleep 1'
==> default: 200:     reload_command '/usr/sbin/invoke-rc.d apache2 reload && sleep 1'
==> default: 201:   when 'arch'
==> default: 202:     service_name 'httpd'
==> default: 203:   when 'freebsd'
==> default: 204:     service_name 'apache22'
==> default: 205:   end
==> default: 206:   supports [:restart, :reload, :status]
==> default: 
==> default: 
==> default: 
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in /vagrant/chef/cookbooks/berks/apache2/recipes/default.rb:188:in `from_file'
==> default: 
==> default: service("apache2") do
==> default:   action [:enable, :start]
==> default:   supports {:restart=>true, :reload=>true, :status=>true}
==> default:   retries 0
==> default:   retry_delay 2
==> default:   guard_interpreter :default
==> default:   service_name "apache2"
==> default:   enabled true
==> default:   running true
==> default:   pattern "apache2"
==> default:   restart_command "/usr/sbin/invoke-rc.d apache2 restart && sleep 1"
==> default:   reload_command "/usr/sbin/invoke-rc.d apache2 reload && sleep 1"
==> default:   cookbook_name :apache2
==> default:   recipe_name "default"
==> default: end
==> default: 
==> default: 
==> default: 
==> default: 
==> default: Running handlers:
==> default: [2018-01-26T11:47:57+00:00] ERROR: Running exception handlers
==> default: Running handlers complete
==> default: 
==> default: [2018-01-26T11:47:57+00:00] ERROR: Exception handlers complete
==> default: [2018-01-26T11:47:57+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: Chef Client failed. 21 resources updated in 146.200058596 seconds
==> default: [2018-01-26T11:47:57+00:00] ERROR: Chef::Exceptions::MultipleFailures
==> default: [2018-01-26T11:47:57+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

I'm not sure what the problem is, hope this output is enough to try and find the problem. Let me know if you need to full provisioning output.

awm’s picture

we are attempting to update the box to xenial which ships with php 7 ... https://www.drupal.org/project/vdd/issues/2915293#comment-12456355

if that's good enough we can close this.

awm’s picture

Status: Needs review » Closed (outdated)