Page MenuHomePhabricator

Migrate translatewiki.net to PHP7
Closed, ResolvedPublic

Description

The tide has changed for PHP7.

The only thing specifically depending on HHVM right now should be vatkain, which should be easy to convert.

The hhvm service can be replaced with php-fgci.

Some modules need to be rebuild, the few of them remaining (wikidiff).

Should check the libyaml availability in php: http://php.net/manual/en/yaml.installation.php

Event Timeline

Change 420292 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[translatewiki@master] Migrade from HHVM to PHP 7

https://gerrit.wikimedia.org/r/420292

Change 420292 merged by jenkins-bot:
[translatewiki@master] Migrate from HHVM to PHP 7

https://gerrit.wikimedia.org/r/420292

See T190016#4060912 for the main part.

I used php-fpm instead of php-fcgi. Will look into installing wikidiff2 and fixing Vatkain, but they are not urged. Planning to use mediawiki-lts ppa from @Legoktm for wikidiff2 because there was a warning that the standard ubuntu package segfaults.

Hmm, those packages only support PHP 7.0 – I guess I could downgrade further to 7.0 or just live without wikidiff2 for now.

Hmm, those packages only support PHP 7.0 – I guess I could downgrade further to 7.0 or just live without wikidiff2 for now.

What Ubuntu version are you running? The packages should support the version of PHP that is packaged for that Ubuntu version, unless I made a mistake somewhere.

Yeah Ubuntu 16.04 only has 7.0 packaged. It does feel not nice though to go from one unmaintained version (5.6) to another (7.0) (except security). In fact 5.6 has security support for one month longer!

Not sure why I mentioned 5.6, since we were using HHVM. But we have most of the time used newer packages outside standard repositories for PHP/HHVM/Puppet/nginx. Will be curious to see whether we can stop doing that with next Ubuntu LTS.

The packages in the PPA are built against and only tested with the PHP versions shipped in Ubuntu. The next LTS (18.04) ships with 7.2. That said, if you do care about receiving timely security updates, I'd recommend using Debian, which provides security support for (nearly) the entire archive, instead of Ubuntu, which doesn't guarantee updates for the universe part of the archive.

Migrating to a different distribution is out of scope for this task, but will be evaluated when we need to upgrade.

Nikerabbit triaged this task as Low priority.

@Joe I think you got a wrong task :)

Krinkle renamed this task from Migrate to PHP7 to Migrate translatewiki.net to PHP7.Jul 13 2018, 12:05 AM
Krinkle subscribed.

@Nikerabbit Indeed :)

@Joe I think you got a wrong task :)

Yeah sorry, I had another one with almost the same title and I just added the parent task.

Sorry :)

Nikerabbit claimed this task.

Marking this as resolved. Filed T208479: Migrate vatkain from HHVM to PHP7 for the last task to do.