development/hhvm: Fix README.

This commit is contained in:
B. Watson 2016-11-14 14:04:12 -05:00 committed by Willy Sudiarto Raharjo
parent 509ef973f2
commit d4e32649c3
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -15,34 +15,36 @@ In order to start HHVM at boot and stop it properly at shutdown,
make sure rc.hhvm is executable and add the following lines to make sure rc.hhvm is executable and add the following lines to
the following files: the following files:
/etc/rc.d/rc.local /etc/rc.d/rc.local
================== ==================
# Startup HHVM # Startup HHVM
if [ -x /etc/rc.d/rc.hhvm ]; then if [ -x /etc/rc.d/rc.hhvm ]; then
/etc/rc.d/rc.hhvm start /etc/rc.d/rc.hhvm start
fi fi
/etc/rc.d/rc.local_shutdown /etc/rc.d/rc.local_shutdown
=========================== ===========================
# Stop HHVM # Stop HHVM
if [ -x /etc/rc.d/rc.hhvm ]; then if [ -x /etc/rc.d/rc.hhvm ]; then
/etc/rc.d/rc.hhvm stop /etc/rc.d/rc.hhvm stop
fi fi
Default HHVM configuration uses Unix sockets. If you don't use Apache make sure that your Default HHVM configuration uses Unix sockets. If you don't use Apache
web server has write access to the socket file. You can create a new group and add make sure that your web server has write access to the socket file. You
your web server user to this group or just use the main group of your web server and can create a new group and add your web server user to this group or
start HHVM as following: just use the main group of your web server and start HHVM as following:
hhvm_GROUP=apache /etc/rc.d/rc.hhvm start hhvm_GROUP=apache /etc/rc.d/rc.hhvm start
FastCGI must be configured to communicate with HHVM. FastCGI must be configured to communicate with HHVM.
A good start point is: https://github.com/facebook/hhvm/wiki/FastCGI A good start point is: https://github.com/facebook/hhvm/wiki/FastCGI
To start a project you have to configure the type checker as well. To start a project you have to configure the type checker as well.
See the official documentation: http://docs.hhvm.com/manual/en/install.hack.bootstrapping.php See the official documentation:
Basically you create an empty .hhconfig file in the root directory of your project: http://docs.hhvm.com/manual/en/install.hack.bootstrapping.php
touch .hhconfig
Basically you create an empty .hhconfig file in the root dir of your project:
touch .hhconfig
and run: and run:
hh_client hh_client
Happy Hacking! Happy Hacking!