When you compile Apache 2.4.x & OpenSSL 1.1.x on FreeBSD from source (ports), and you also use “pkg” to install or upgrade applications, you’ll run into all sorts of random errors – one of them is mod_ssl.so: Undefined symbol “RAND_egd” To fix the problem, try this remedy which seems to work: