I reinstalled Aegir 3.4 on Xenial on the weekend and to my suprise PHP5 has been dropped and PHP7 is now standard on Ubuntu 16.04

I managed to get Aegir 3.4 installed using a slightly modified Ansible role from Valkyrie

D7 & D8 platforms both verify OK

D7 core installs OK

D7 Aegir UI (Hostmaster) Flush Cache fails

Bootstrap to phase 0.	
Bootstrap to phase 0.	
Found command: provision-flush_cache (commandfile=provision_tasks_extra)	
Unknown option: --profile. See `drush help provision-flush_cache` for available options. To suppress this error, add the option --strict=0.

D8 core install fails with

Undefined index: db_prefix install_8.inc:105
Undefined variable: config install_8.inc:112
Undefined variable: config install_8.inc:113
1 s.
DRUPAL_INSTALL_FAILED

I am planning on working through any issues, the sites run 2-3 times faster, for site building, that means a lot less click wait click, I am going to stick with it unless other big errors arise

my feeling with the D8 install issue is its minor

some relevant issues

D8 Site install fails on undefined indexes
https://www.drupal.org/node/2311005

[META] Support PHP 7
https://www.drupal.org/node/2454439

I tried to see if there where glaring PHP7 syntax changes
http://php.net/manual/en/migration70.incompatible.php

I see this comment from geerlingguy
https://www.drupal.org/node/2454439#comment-10071710

PHP QA
https://www.drupal.org/node/3060/qa

CommentFileSizeAuthor
#10 aegir-php7b.jpg1.45 MBomega8cc
#10 aegir-php7a.jpg1.31 MBomega8cc
Members fund testing for the Drupal project. Drupal Association Learn more

Comments

niccolox created an issue. See original summary.

niccolox’s picture

Issue summary: View changes
niccolox’s picture

Issue summary: View changes
niccolox’s picture

the Drupal 8 sites do actually seem to be created, including the drushrc.php

maybe its a false positive?

colan’s picture

Background info on the switch to PHP7 only can be found over at Update to php 7.0.

Would you be able to split everything you're seeing into child issues here so we can easily track? Xenial will be out in 8 days. I'll help here too once I get my hands on a VM with it.

niccolox’s picture

yes, I'll split them out, was just about to link to that core issue https://www.drupal.org/node/2454439 :>

also, on Xenial, I was going to run Drush 9-dev and Provision 3.4
https://www.drupal.org/node/2701145

for testing this I was looking at updating Valkyrie to Xenial, its mostly there, just some changes to php apt and the mysql role doesnt quite work

colan’s picture

colan’s picture

Version: 7.x-3.4 » 7.x-3.x-dev
Status: Active » Postponed

I'm assuming we should wait for all of the issues over at #2656548: Fully support PHP 7.0 in Drupal 7 to get into a stable core release? It's probably okay to unpostpone if doing work on this anyway. niccolox? Maybe it's better to spin off child issues for things that we're actually working on, and keep this one postponed.

I'm assuming this is 3.x, but maybe it should be 4.x? Really depends on the release plan.

ergonlogic’s picture

Assuming we don't need to break any APIs to support PHP 7, then 3.x should be fine.

omega8cc’s picture

FileSize
1.31 MB
1.45 MB

Good news! Everything works just fine in the frontend with recent patch applied to Drupal core: https://www.drupal.org/node/2656548#comment-11148293

Less good news: Provision needs some fixes to make it PHP 7 compatible (I will open separate issue to report details)

Now it is very useful that BOA allows you to run different PHP versions for PHP-FPM and PHP-CLI, so we can test frontend and backend separately.

php7

php7

niccolox’s picture

am testing Xenial Php7 and Ubuntu 16 with this role

https://github.com/niccolox/ansible-role-aegir

platforms and sites install fine

registry rebuild and cache clear via hostmaster fail

https://www.drupal.org/node/2726425#comment-11402495

colan’s picture

Just added #2769587: Nginx: PHP FPM fails to detect socket mode on PHP 7 and one for Aegir HTTS (which won't show on the right as project is only on GitLab): Stop assuming PHP is always at version 5

colan’s picture

Status: Postponed » Fixed

I've been running PHP 7 exclusively for a while now, and haven't run into any new issues. Please reopen if I'm missing anything.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

niccolox’s picture

hi Colan

what method of installation are you using?

I just tried the debian packages on an LXC / LXD container on Xenial and got these errors

Enabling hosting-queued daemon
Could not find the alias @hostmaster                                 [error]
dpkg: error processing package aegir3-hostmaster (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of aegir3:
 aegir3 depends on aegir3-hostmaster (>= 3.8); however:
  Package aegir3-hostmaster is not configured yet.

dpkg: error processing package aegir3 (--configure):
 dependency problems - leaving unconfigured
Setting up libhtml-tagset-perl (3.20-2) ...
Setting up liburi-perl (1.71-1) ...
Setting up libhtml-parser-perl (3.72-1) ...
Setting up libcgi-pm-perl (4.26-1) ...
Setting up libfcgi-perl (0.77-1build1) ...
Setting up libcgi-fast-perl (1:2.10-1) ...
Setting up libencode-locale-perl (1.05-1) ...
Setting up libhtml-template-perl (2.95-2) ...
Setting up libtimedate-perl (2.3000-2) ...
Setting up libhttp-date-perl (6.02-1) ...
Setting up libio-html-perl (1.001-1) ...
Setting up liblwp-mediatypes-perl (6.02-1) ...
Setting up libhttp-message-perl (6.11-1) ...
Setting up mysql-server (5.7.16-0ubuntu0.16.04.1) ...
Setting up php7.0 (7.0.8-0ubuntu0.16.04.3) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Processing triggers for systemd (229-4ubuntu13) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Errors were encountered while processing:
 aegir3-hostmaster
 aegir3
E: Sub-process /usr/bin/dpkg returned an error code (1)
colan’s picture

I haven't run into that myself (using PHP 7 so I'm assuming unrelated), but it looks like #2792723: Install fails on enabling hosting-queued daemon vanilla 16.04 LTS Server.