首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >HHVM返回错误500

HHVM返回错误500
EN

Stack Overflow用户
提问于 2014-06-20 21:40:27
回答 2查看 5K关注 0票数 2

目前,我正在尝试设置hhvm服务器。PHP应用程序对我来说很好,hack lang php文件就不行。

我的本地沙箱返回(error.log中的每个请求):

代码语言:javascript
复制
[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配置:

代码语言:javascript
复制
<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

代码语言:javascript
复制
<!DOCTYPE html><html><head></head><body>Hello World!<br />Running on HHVM version 3.1.0</body></html>

如果我调用"hhvm.local“,服务器会响应一个500内部服务器错误。

操作系统: Ubuntu 14.04

有人能帮我吗?:)

EN

回答 2

Stack Overflow用户

发布于 2014-07-03 17:58:47

如果只使用一个回声就可以执行hhvm index.php - index.php,会发生什么情况

它输出了什么吗?

是?试试service hhvm start

至少在我的设置中,hhvm并不总是自己启动的。

不是吗?

那么你可能会有一个安装问题。在ubuntu - self compiling - pre built上安装HHVM有两种方式

我只使用预构建的。至少这是我让它工作的方式:)

希望能有所帮助

票数 0
EN

Stack Overflow用户

发布于 2014-09-03 05:50:56

您的ProxyPassMatch未设置为嗅探hh文件扩展名。您应该使用以下代码...

代码语言:javascript
复制
ProxyPassMatch ^/(.+\.(hh|php)(/.*)?)$ fcgi://127.0.0.1:9000/var/www/hhvm.local/$1
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24328674

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档