hhvm / packaging

The sources for how we have built the HHVM packages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ubuntu postinstall script instructions do not include any mentions of standalone mode and suggest that apache/nginx is reqiured

mkacik opened this issue · comments

Ubuntu package instructions do not include any mentions of standalone mode. Since hhvm comes with server mode now, it should also be suggested in the instructions.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.4 LTS
Release:        14.04
Codename:       trusty
$ apt-cache show hhvm
Package: hhvm
Provides: hhvm-fastcgi
Replaces: hhvm-fastcgi
Conflicts: hhvm-fastcgi
Version: 3.13.1~trusty
Architecture: amd64
Essential: no
Depends: binutils, libasn1-8-heimdal, libboost-filesystem1.54.0, libboost-program-options1.54.0, libboost-system1.54.0, libboost-system1.54.0, libboost-regex1.54.0, libbz2-1.0, libc6, libcap2, libc-client2007e, libcomerr2, libelf1, libexpat1, libfontconfig1, libfreetype6, libgcc1, libgcrypt11, libgd3, libgnutls26, libgpg-error0, libgssapi3-heimdal, libgssapi-krb5-2, libhcrypto4-heimdal, libheimbase1-heimdal, libheimntlm0-heimdal, libhx509-5-heimdal, libicu52, libidn11, libjpeg-turbo8, libk5crypto3, libkeyutils1, libkrb5-26-heimdal, libkrb5-3, libkrb5support0, libldap-2.4-2, libmcrypt4, libmemcached10, libmysqlclient18, libonig2, libp11-kit0, libpam0g, libpcre3, libvpx1, libpng12-0, libroken18-heimdal, librtmp0, libsasl2-2, libsqlite3-0, libssl1.0.0, libstdc++6, libtasn1-6, libtbb2, libtinfo5, libwind0-heimdal, libx11-6, libxau6, libxcb1, libxdmcp6, libxml2, libxpm4, zlib1g, libedit2, libjemalloc1 (>= 3.0.0), libgoogle-glog0 (>= 0.3.1), libcurl3 (>= 7.28.0), libboost-thread1.54.0, libboost-context1.54.0, libmagickwand5, libxslt1.1, libevent-2.0-5, libgmp10, libyaml-0-2
Maintainer: Paul Tarjan <pt@fb.com>
Priority: optional
Section: web
Filename: pool/main/h/hhvm/hhvm_3.13.1~trusty_amd64.deb
Size: 17899036
SHA256: dfda528f28ff015b8a3d506239ba2dc5f6f8f1e6864771f1407c6bd232ec5bd5
SHA1: 594454a962f8aaf3c196cd3970d45fcb1a9b9368
MD5sum: ec8a7b4b4c5124ea0dcfa3e811e33927
Description: HHVM virtual machine, runtime, and JIT for the PHP language
Description-md5: 98571cd7333493baf95470adfb419c6f
$ sudo dpkg-reconfigure hhvm                                                                                                               
********************************************************************
* HHVM is being removed. You can remove it from your webserver with:
* 
* $ sudo /usr/share/hhvm/uninstall_fastcgi.sh
* $ sudo /etc/init.d/nginx restart
* $ sudo /etc/init.d/apache restart
********************************************************************
********************************************************************
* HHVM is installed.
*
* Running PHP web scripts with HHVM is done by having your
* webserver talk to HHVM over FastCGI. Install nginx or Apache,
* and then:
* $ sudo /usr/share/hhvm/install_fastcgi.sh
* $ sudo /etc/init.d/hhvm restart
* (if using nginx)  $ sudo /etc/init.d/nginx restart
* (if using apache) $ sudo /etc/init.d/apache restart
*
* Detailed FastCGI directions are online at:
* https://github.com/facebook/hhvm/wiki/FastCGI
*
* If you're using HHVM to run web scripts, you probably want it
* to start at boot:
* $ sudo update-rc.d hhvm defaults
*
* Running command-line scripts with HHVM requires no special setup:
* $ hhvm whatever.php
*
* You can use HHVM for /usr/bin/php even if you have php-cli
* installed:
* $ sudo /usr/bin/update-alternatives \
*    --install /usr/bin/php php /usr/bin/hhvm 60
********************************************************************

I'm unlikely to get to this myself, but it's a good idea. Feel free to send a PR. Our bits of relevant docs are at https://docs.hhvm.com/hhvm/basic-usage/server and https://docs.hhvm.com/hhvm/basic-usage/proxygen