I am trying to run the passenger-install-apache2-module
command and I keep getting this error:
ext/apache2/mod_passenger.c:25:10: fatal error: \'httpd
During the mavericks upgrade several configuration files were saved as previous and replaced by the install including:
/etc/apache2/httpd.conf~previous
/etc/group~previous
/etc/php.ini.default-5.2-previous
/etc/sshd_config~previous
/etc/syslog.conf~previous
Another, related issue, is to do with /usr/share/httpd/build/config_vars.mk you can see that cc is set incorrectly, and CC should read CC = /usr/bin/cc, likewise CPP should read CC = /usr/bin/cc -E
I was having the same error. You need to:
Update/install xcode.
xcode-select --install
from the command line to reinstall the command line tools.It worked for me, hopefully for you too!
The update also commented out the line:
Include /private/etc/apache2/extra/httpd-vhosts.conf
So once I uncommented that it all loaded as normal.
** UPDATE FOR YOSEMITE **
In your /etc/apache2/httpd.conf
file you'll need to change:
<Directory />
AllowOverride none
Require all denied
</Directory>
To:
<Directory />
AllowOverride none
Require all granted
</Directory>