Last modified: 2014-04-16 19:10:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56173, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54173 - Devise Apache config for HHVM on Labs
Devise Apache config for HHVM on Labs
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Apache configuration (Other open bugs)
wmf-deployment
All All
: Normal normal (vote)
: ---
Assigned To: Ori Livneh
https://github.com/facebook/hiphop-ph...
: hhvm
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-16 17:45 UTC by Ori Livneh
Modified: 2014-04-16 19:10 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ori Livneh 2013-09-16 17:45:55 UTC
HHVM doesn't work with Apache / mod_php. You have to use the built-in HHVM web server instead and use a reverse proxy to have things like SSL and GZIP. Facebook recommends using Nginx.

The documentation for configuring Nginx for HHVM is located at <https://github.com/facebook/hiphop-php/wiki/Using-nginx-as-Front-Server-to-HipHop>.

We should devise an Nginx config that is compatible with our Apache app server config.
Comment 1 Brion Vibber 2013-09-29 15:33:32 UTC
Would it be better to run nginx on each app server, or run each app server from HHVM directly and do all the SSL/GZIP at an aggregate LB/caching stage?
Comment 2 Max Semenik 2013-10-10 09:48:10 UTC
Is there any killer feature in Nginx required for this, orr they simply recommend whatever they use themselves, but other alternatives would also work?
Comment 3 Andre Klapper 2014-01-10 00:38:16 UTC
[Using keyword instead of tracking bug for HipHop issues as requested in bug 40926 comment 5. Filter bugmail on this message.]
Comment 4 Ori Livneh 2014-03-05 22:42:51 UTC
With FastCGI support built in to HHVM, we won't need to migrate to Nginx. I'm therefore changing the scope of this bug to Apache configurations.

What we currently need is an Apache configuration for Labs that invokes the HHVM interpreter rather than PHP if a special cookie is present on the client request.

Niklas has done something similar on <http://dev.translatewiki.net/>, using Nginx. On Apache, we could probably use mod_setenvif.

Choosing an interpreter based on an environment variable is how Apache is currently configured to work on MediaWiki-Vagrant. See <https://github.com/wikimedia/mediawiki-vagrant/blob/master/puppet/modules/mediawiki/templates/mediawiki-apache-site.erb#L36>.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links