How pass/set environment variables into HHVM?

I’m trying to migrate a website from php5-fpm to hhvm.

We use Docker for local dev environments, and we set things like MySQL and Redis details using environment variables that are created using Docker’s --link.

  • Install Python mysqlclient on Ubuntu docker container
  • Error while execing a docker image
  • How to see commit message from docker images
  • How to run docker container from remote api?
  • NPM install via git+https//x-oauth-basic within Docker container fails
  • How to Keep Docker Container Running After Starting Services?
  • With php5-fpm, it was easy to pass these variables into PHP by setting them in www.conf.

    With hhvm 3.5.0, I can’t seem to find the equivalent. I got close when I found EnvVariables in an example config on this page, but hhvm 3.5.0 now uses INI files for config and I can’t seem to find where to set them using these.

    Any ideas?


  • It's possible to tie a domain to the docker container when building it?
  • How do I configure Laradock IP?
  • Cron job doesn't work until I re-save cron file in docker container
  • Exposing a port on a live Docker container
  • kafka-node LeaderNotAvailable errors on send
  • Problems getting docker containers to see (ping) each other by name
  • One Solution collect form web for “How pass/set environment variables into HHVM?”

    Turns out they were there all along in $_ENV instead of $_SERVER. Must be fastcgi_params.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.