-
Notifications
You must be signed in to change notification settings - Fork 0
/
hhvm_server.sh
22 lines (17 loc) · 902 Bytes
/
hhvm_server.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
PORT="8888"
# first you must install hhvm
# `brew tap hhvm/hhvm`
# `brew install hhvm`
# to get the config files to work you must create
# /usr/local/var/log/hhvm and /usr/local/var/run/hhvm
# You can also run as a cgi script with a max timeout and argument (problem #):
# /usr/local/bin/hhvm -d max_execution_time=240 index.php 47
# Or run it this way?
# /usr/local/bin/hhvm --mode debug --port 8888 index.php 1
# /usr/local/bin/hhvm --mode server --port 8888 index.php
# /usr/local/bin/hhvm --mode server -c /usr/local/etc/hhvm/php.ini -c /usr/local/etc/hhvm/server.ini index.php
echo "Starting HHVM Server on port ${PORT}"
/usr/local/bin/hhvm --mode server --port ${PORT} -c /usr/local/etc/hhvm/php.ini index.php
# Only issue is the destructor does not send the output to the web browser. It does work with CGI though.
# -vEval.EnableObjDestructCall=1 does not seem to help