首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >HHVM中的Fastcgi和版本检测

HHVM中的Fastcgi和版本检测
EN

Stack Overflow用户
提问于 2014-04-10 03:30:07
回答 1查看 911关注 0票数 0

我最近使用git clone安装了HHVM,我还安装了fastcgi并为Apache2.4配置了它,但我仍然无法在HHVM服务器上运行文件。

代码语言:javascript
复制
 sudo hhvm -m server -vServer.Type=fastcgi -vServer.Port=9000 

我运行上面的命令,得到以下错误

WARNING: Logging before InitGoogleLogging() is written to STDERR E0410 00:38:32.074034 21849 fastcgi-session.cpp:562] FastCGI protocol: received an invalid record

我通过以下方式安装了Fastcgi

代码语言:javascript
复制
sudo apt-get install php5-fastcgi

当我跑步的时候

代码语言:javascript
复制
sudo apt-get install hhvm-fastcgi

我得到了这个错误

The following packages have unmet dependencies: hhvm-fastcgi : Depends: hhvm (>= 2.3.0) E: Unable to correct problems, you have held broken packages.

但是我在命令行中输入hhvm --version,它显示了以下内容:

HipHop VM 3.0.0-dev (rel) Compiler: heads/master-0-g39a0d45681b1404e19427f8cdd214c273d0a601d Repo schema: b602fe3a78ec9eec7b65ec874110b9323ceabf88

更新:我的自定义站点启用配置

代码语言:javascript
复制
   <VirtualHost *:80 >

ServerAdmin webmaster@localhost
DocumentRoot /var/www

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ProxyPassMatch / fcgi://127.0.0.1:9000/var/www/
   </VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

我的Apache配置文件

代码语言:javascript
复制
Mutex file:${APACHE_LOCK_DIR} default
PidFile ${APACHE_PID_FILE}
Timeout 300

 KeepAlive On

 MaxKeepAliveRequests 100

 KeepAliveTimeout 5

 User ${APACHE_RUN_USER}
 Group ${APACHE_RUN_GROUP}
 HostnameLookups Off
  ErrorLog ${APACHE_LOG_DIR}/error.log
  LogLevel warn

 IncludeOptional mods-enabled/*.load
 IncludeOptional mods-enabled/*.conf
 Include ports.conf
 <Directory />
    Options FollowSymLinks
AllowOverride None
Require all denied
 </Directory>

 <Directory /usr/share>
AllowOverride None
Require all granted
  </Directory>

 <Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
  </Directory>
  AccessFileName .htaccess

  <FilesMatch "^\.ht">
Require all denied
  </FilesMatch>


   LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\""         vhost_combined
   LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
   LogFormat "%h %l %u %t \"%r\" %>s %O" common
   LogFormat "%{Referer}i -> %U" referer
   LogFormat "%{User-agent}i" agent

   IncludeOptional conf-enabled/*.conf
   IncludeOptional sites-enabled/*.conf
   Include /etc/phpmyadmin/apache.conf
EN

回答 1

Stack Overflow用户

发布于 2014-04-10 04:45:07

不要为hhvm-fastcgi包而烦恼。我要杀了它。你在哪里找到它的文档的?

无效记录的问题看起来像是您以错误的方式访问了fastcgi服务器。粘贴apache配置会很有帮助。你到底有没有跟踪https://github.com/facebook/hhvm/wiki/FastCGI

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22972240

复制
相关文章

相似问题

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