1
During the updates of Ubuntu 12.04, the HHVM was updated and then asked to run the installation command for the fast_cgi.
However when executing 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 I configure the installer of fast_cgi to find this facility?
Follow part of the script below, for a better understanding (full 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 installed Apache/PHP using updated repositories, so I used apt-get
even.
That way the HHVM worked smoothly.
But the reason for this question at the time was: how to use HHVM with apache compiled manually, since there is no mods-enabled folder, among others.. the structure is different.
If anyone gives down vote, Please explain the reason, so that I "fix this". After all: I don’t have crystal ball.
The only way is with apache installed through the
apt-get
? Anyway, right after this post and as soon as it released version 14.04 I installed apache through a newer repository using theapt-get
and it worked. But my doubt was regarding the installation of HHVM using apache complicated manually in an alternative folder. Anyway, thank you.– Patrick Maciel
I went for the most practical, although I knew what you needed but I did not find any documentation about your doubt
– Otto