[英]HHVM returns error 500
目前,我正在嘗試設置hhvm服務器。 PHP應用程序對我來說工作正常,但不能破解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 Config:
<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守護程序(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
有人可以幫我嗎? :)
您的ProxyPassMatch沒有設置為嗅探文件擴展名。 您應該改用以下內容...
ProxyPassMatch ^/(.+\.(hh|php)(/.*)?)$ fcgi://127.0.0.1:9000/var/www/hhvm.local/$1
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.