On Sun, Jan 19, 2014 at 1:38 PM, Ori Livneh ori@wikimedia.org wrote:
To switch MediaWiki from PHP to HHVM, simply run 'vagrant enable-role hhvm', followed by 'vagrant provision'
I did this and `vagrant provision` failed with
err: /Stage[main]/Hhvm/Package[hhvm-nightly]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install hhvm-nightly' returned 100: Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies: hhvm-nightly : Depends: libmemcached6 but it is not going to be installed E: Unable to correct problems, you have held broken packages.
("you have held broken packages in your arms", so poetic :-) )
The issue might be old version of php5-memcached using libmemcached10 which conflicts with libmemcached6. I ran `sudo apt-get install php5-memcached` which updated to libmemcached11 and then `vagrant provision` worked fine. I didn't file a bug.
(I normally run `sudo unattended-upgrade` to update MW-Vagrant with security updates but don't otherwise upgrade packages, which AIUI is similar to how puppet updates labs instances. I added "Update system software?" to https://www.mediawiki.org/wiki/MediaWiki-Vagrant#How_do_I....3F , Be Bold.)
if you aren't sure which interpreter is running, you can simply check under
"Installed software" (or localized equivalent) in Special:Version. HHVMappears as '5.4.999-hiphop (srv)'
My Special:Version says "PHP 5.3.10-1ubuntu3.9 (fpm-fcgi)" :-( I've tried killing php5-fpm, restarting apache2, ` sudo /etc/init.d/hhvm start` etc. More details in https://bugzilla.wikimedia.org/show_bug.cgi?id=60384
-- =S Page Features engineer