Project

General

Profile

Bug #400

Apache will not start with OpenSSL from ports

Added by Daniel Curtis about 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Server
Target version:
Start date:
06/08/2014
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

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.

History

#1 Updated by Daniel Curtis about 3 years ago

  • Status changed from Resolved to Closed

#2 Updated by Daniel Curtis over 2 years ago

  • Project changed from 91 to FreeBSD Administration
  • Category set to Web Server
  • Target version set to FreeBSD 9

Also available in: Atom PDF