Note:

The error configure: error: pcre(2)-config for libpcre not found. PCRE is required and available from http://pcre.org/ indicates that the PCRE (Perl Compatible Regular Expressions) library is missing on your system. This library is required to compile the Apache HTTP Server.

Steps to Resolve:

  1. Install the PCRE development package:

    • On Ubuntu/Debian, run:
      sudo apt update
      sudo apt install libpcre3-dev
      
  2. Optional Dependencies:

    • If you also want HTTP/2 and SSL support, install additional dependencies:
      sudo apt install build-essential libpcre3-dev libssl-dev zlib1g-dev
      
  3. Reconfigure and Compile:

    • After installing the required dependencies, rerun the ./configure command with the desired flags. For example:
      ./configure --enable-proxy --enable-proxy-http --enable-ssl --enable-rewrite
      

This should resolve the issue and allow you to proceed with the compilation of Apache HTTP Server.

Resolving the ServerName Warning in Apache

The warning AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message occurs when Apache cannot determine the server's fully qualified domain name (FQDN) and defaults to 127.0.1.1.

Steps to Resolve:

  1. Edit Apache's Configuration File:
  1. Add the ServerName Directive:
  1. Save and Exit:
  1. Restart Apache:

This should resolve the warning and ensure Apache uses the specified ServerName.


Written by A.M. Rinas