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
}
對不起,我的英語水平。