HHVM中的Fastcgi和版本检测

时间:2014-04-09 19:30:07

标签: php facebook fastcgi hhvm

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

 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
sudo apt-get install php5-fastcgi

当我跑

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

更新:我的自定义网站配置

   <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配置文件

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

1 个答案:

答案 0 :(得分:0)

不要打扰hhvm-fastcgi包裹。我需要杀死它。你在哪里找到它的文档?

无效记录事情看起来像是以错误的方式击中fastcgi服务器。粘贴apache配置会很有帮助。您是否完全关注https://github.com/facebook/hhvm/wiki/FastCGI