During the Ubuntu 12.04 upgrades, HHVM was updated and then asked to run the fast_cgi install command.
However when running I received the following error:
➜ ~ 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
This was because my Apache was compiled manually and installed in a different directory: /etc/apache247/
.
How do I configure the fast_cgi installer to find this installation?
Here's part of the script below for a better understanding ( complete script ):
#!/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
}
Ubuntu 14.04 [EDIT]
I recently upgraded Ubuntu to version 14.04, and I installed Apache / PHP using updated repositories, so I used apt-get
itself.
That way the HHVM worked quietly.
But the reason for this issue at the time was: How to use HHVM with apache compiled manually, since there is no mods-enabled folder, among others.
>If someone down vote , please explain why, so I "fix it". After all: I do not have crystal ball.