"Could not locate Apache configuration file" Error When Attempting to Install the Crowd Apache Connector on Ubuntu Linux
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
After running ./configure in Step 3 of this guide: Installing the Crowd Apache Connector on Ubuntu Linux , the following error message is thrown:
1
configure: error: Could not locate Apache configuration file
Cause
The configure.ac file in mod_authnz_crowd-2.0.2 has 3 hardcoded links to locate httpd.conf:
1
2
3
4
5
6
7
AC_CHECK_FILE([/usr/local/apache2/conf/httpd.conf], [HTTPD_CONF="/usr/local/apache2/conf/httpd.conf"], [
AC_CHECK_FILE([/etc/httpd/conf/httpd.conf], [HTTPD_CONF="/etc/httpd/conf/httpd.conf"], [
AC_CHECK_FILE([/etc/apache2/httpd.conf], [HTTPD_CONF="/etc/apache2/httpd.conf"], [
AC_MSG_ERROR([Could not locate Apache configuration file])
])
])
])
If httpd.conf is located in a different location, the error highlighted in this KB will be thrown.
This bug is recorded in our system as CWDAPACHE-35.
Workaround
Modify configure.ac
in mod_authnz_crowd
so that it includes your httpd.conf's location. Example:
1
2
3
AC_CHECK_FILE([/path/to/httpd.conf], [HTTPD_CONF="/path/to/httpd.conf"], [
AC_MSG_ERROR([Could not locate Apache configuration file])
])
Modify /path/to/httpd.conf to the location of your httpd.conf
Was this helpful?