We earn commission when you buy through affiliate links.

This does not influence our reviews or recommendations.Learn more.

Installing Apache HTTP is always fun.

A few days back, I was installing Apache 2.4 on CentOS VM and encounteredmultiple errors.

I thought it would be helpful to put together for a reference.

APR not found

APR stands for Apache Portable Runtime and needed to compile from the source.

If you are in the same situation as me then following willrescueyou.

First, you oughta install APR.

Once done, I tried installing Apache and got another error.

Tried installing Apache again and got another error.

pcre-config for libpcre not found

This is what I got.

PCRE stands for Perl Compatible Regular Expressions, and this error got aneasy solution.

You just to install pcre-devel package.

Not over yet, got another in next attempt related toOpenSSL.

If you are getting this error, then this can be resolved by installingexpat-develpackage.

nghttp2 version is too old

This is specific to when you try toinstall Apache with HTTP/2.

You will get the following error.

And, if so, you’re free to fix by installing nghttp2 as below.

Once done without error, launch the Apache source build with HTTP2 again.

It should be alright.

Finally, I was able to install Apache successfully.

If you are interested in learning about Apache HTTP Server Administration, then check out thisonline course.