目前,我正在尝试设置hhvm服务器。PHP应用程序对我来说很好,hack lang php文件就不行。
我的本地沙箱返回(error.log中的每个请求):
[Fri Jun 20 15:31:43.725292 2014] [proxy:debug] [pid 26542] proxy_util.c(1694): AH00925: initializing worker fcgi://127.0.0.1:9000/var/www/hhvm.local/$1 shared
[Fri Jun 20 15:31:43.725314 2014] [proxy:debug] [pid 26542] proxy_util.c(1734): AH00927: initializing worker fcgi://127.0.0.1:9000/var/www/hhvm.local/$1 local
[Fri Jun 20 15:31:43.725325 2014] [proxy:debug] [pid 26542] proxy_util.c(1785): AH00931: initialized single connection worker in child 26542 for (127.0.0.1)我的Apache配置:
<virtualhost *:80>
# Admin email, Server Name (domain name) and any aliases
ServerAdmin admin@domain.de
ServerName hhvm.local
ServerAlias www.hhvm.local
# Index file and Document Root (where the public files are located)
DirectoryIndex index.php index.html
DocumentRoot /var/www/hhvm.local
# Custom log file locations
LogLevel debug
#LogLevel warn
ErrorLog /var/www/hhvm.local/log/errors.log
CustomLog /var/www/hhvm.local/log/access.log combined
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/hhvm.local/$1
<Directory /var/www/hhvm.local>
Options Indexes FollowSymLinks MultiViews
AllowOverride FileInfo All
Order allow,deny
Allow from all
Require all granted
</Directory>
Apache (2.4)正在运行,HHVM Daemon (3.0)正在运行,
~$:hhvm index.hh
<!DOCTYPE html><html><head></head><body>Hello World!<br />Running on HHVM version 3.1.0</body></html>如果我调用"hhvm.local“,服务器会响应一个500内部服务器错误。
操作系统: Ubuntu 14.04
有人能帮我吗?:)
发布于 2014-07-03 17:58:47
如果只使用一个回声就可以执行hhvm index.php - index.php,会发生什么情况
它输出了什么吗?
是?试试service hhvm start
至少在我的设置中,hhvm并不总是自己启动的。
不是吗?
那么你可能会有一个安装问题。在ubuntu - self compiling - pre built上安装HHVM有两种方式
我只使用预构建的。至少这是我让它工作的方式:)
希望能有所帮助
发布于 2014-09-03 05:50:56
您的ProxyPassMatch未设置为嗅探hh文件扩展名。您应该使用以下代码...
ProxyPassMatch ^/(.+\.(hh|php)(/.*)?)$ fcgi://127.0.0.1:9000/var/www/hhvm.local/$1https://stackoverflow.com/questions/24328674
复制相似问题