(Ak: Uusi sivu: ==Running service== ===Running live web server=== Run command at terminal to start as server: asdasd.bin -m server -c config.cfg Or as daemon: asdasd.bin -m daemon -c config.cfg =…) |
(→Database) |
||
Line 9: | Line 9: | ||
==Database== | ==Database== | ||
===Creating database before first run=== | ===Creating database before first run=== | ||
− | Download database file at: http://wiki.enymind.fi/demo/ | + | Download database file at: http://wiki.enymind.fi/demo/chronogrid_live.sql |
==Configuring service== | ==Configuring service== |
Revision as of 02:56, 23 January 2013
Contents
Running service
Running live web server
Run command at terminal to start as server:
asdasd.bin -m server -c config.cfg
Or as daemon:
asdasd.bin -m daemon -c config.cfg
Database
Creating database before first run
Download database file at: http://wiki.enymind.fi/demo/chronogrid_live.sql
Configuring service
Read more at: https://github.com/facebook/hiphop-php/wiki/Runtime-options
Example configuration file (config.cfg)
ServerVariables { dbhostname = localhost dbusername = chronogrid_live dbpassword = password123 dbdatabase = chronogrid_live uploaddir = /tmp logdir = /var/log/hhvm } Server { Port = 8080 DefaultDocument = index.php } Eval { Jit = true } AdminServer { Port = 8088 ThreadCount = 1 Password = gj34Us } Log { Level = Error UseLogFile = true File = /var/log/hhvm/error.log Access { * { File = /var/log/hhvm/access.log Format = %h %l %u %t \"%r\" %>s %b } } } StaticFile { FilesMatch { * { pattern = .*\.(dll|exe) headers { * = Content-Disposition: attachment } } } Extensions { css = text/css gif = image/gif html = text/html jpg = image/jpeg js = text/javascript old = text/javascript png = image/png txt = text/plain } }