我最近使用git clone安装了HHVM,我还安装了fastcgi并为Apache2.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发布于 2014-04-10 04:45:07
不要为hhvm-fastcgi包而烦恼。我要杀了它。你在哪里找到它的文档的?
无效记录的问题看起来像是您以错误的方式访问了fastcgi服务器。粘贴apache配置会很有帮助。你到底有没有跟踪https://github.com/facebook/hhvm/wiki/FastCGI?
https://stackoverflow.com/questions/22972240
复制相似问题