2014-03-29 62 views
0

今天,當HHVM已更新(Ubuntu 12.04 x64)時,我嘗試運行fast_cgi安裝命令。如下圖所示:如何使用源代碼編譯Apache配置HHVM?

➜ ~ sudo /usr/share/hhvm/install_fastcgi.sh 
Checking if Apache is installed 
WARNING: Couldn't find Apache2 configuration paths, not configuring 
Checking if Nginx is installed 
Nginx not found 

我的Apache沒有被發現,因爲它在不同的位置/文件夾:/etc/apache247/

如何配置此安裝自定義的Apache?

進行檢查Apache安裝的腳本是:

#!/bin/bash 

if [ -f /etc/init.d/hhvm ] 
then 
     /etc/init.d/hhvm start 
fi 

#!/bin/bash 

apache_check_installed() { 
     echo "Checking if Apache is installed" 
     if [ \(! -d /etc/apache2/mods-enabled \) -o \(! -d /etc/apache2/mods-available \) ] 
     then 
       echo "WARNING: Couldn't find Apache2 configuration paths, not configuring" 
       return 1 
     fi 
     echo "Detected Apache installation" 
     return 0 
} 

對不起,我的英語水平。

回答

1

您可以按照HHVM Wiki上的說明手動配置Apache以將FastCGI與HHVM對話。

安裝過程歸結爲使Apache中mod_proxymod_proxy_fcgi模塊,然後加入ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/path/to/your/www/root/goes/here/$1到要上運行HHVM的VirtualHost