0

最近、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
4

1 に答える 1