Bug #400
Apache will not start with OpenSSL from ports
Description
I encountered an error where I had to recompile in support for a non-standard module into Apache. The error started after I did a
cd /usr/ports/www/apache22 make reinstall clean
When I went to restart apache I received the following error:
service apache22 restart
httpd: Syntax error on line 9 of /usr/local/etc/apache22/httpd.conf: Syntax error on line 35 of /usr/local/etc/apache22/conf/modules.conf: Cannot load /usr/local/libexec/apache22/mod_ssl.so into server: /usr/local/libexec/apache22/mod_ssl.so: Undefined symbol "TLSv1_2_server_method"
/usr/local/etc/rc.d/apache22: WARNING: failed to start apache22
I found that I needed to recompile the Apache Portable Runtime then reinstall Apache, like so:
cd /usr/ports/devel/apr1 make reinstall clean cd /usr/ports/www/apache22 make reinstall clean
After the reinstallation of the two packages completed, I was able to restart apache successfully:
service apache22 restart
Performing sanity check on apache22 configuration:
Syntax OK
Stopping apache22.
Waiting for PIDS: 60931.
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.