我最近使用 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