
新版HHVM(HipHop Virtual Machine)除了當FastCGI跑PHP之外, 還能獨當一面成為網站伺服器, 也就是說你可以不需要安裝Apache, Nginx...之類的HTTPD, 設定相當簡易, 就來實際看看吧!
編輯/etc/hhvm/server.ini
將以下設定值輸入
hhvm.server.source_root = /path/to/web
hhvm.server.port = 80
hhvm.server.type = proxygen
hhvm.server.default_document = index.php
hhvm.server.type的"proxygen"設定值就是以HHVM自身當做web server, 通常HTTP聽在Port 80,
所以hhvm.server.port設為80
您的Application路徑就是hhvm.server.source_root設定值所需指定的, 啟動HHVM後就能在瀏覽器中檢視
更多關於HHVM設定, 可參閱https://docs.hhvm.com/hhvm/configuration/INI-settings




























































































