Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 won't start - Can't load mod_ca, libssl missing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fincoop
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 143

PostPosted: Mon Sep 11, 2023 3:15 pm    Post subject: Apache2 won't start - Can't load mod_ca, libssl missing Reply with quote

Hello all,

I'm not sure what changed, perhaps the migration to OpenSSL 3.x, but Apache refuses to start and throws this error:

Code:
 rc-service apache2 start
 * Caching service dependencies                                                                                                                                                                                                                                                                                                                                                                         
 * apache2 has detected an error in your setup:
apache2: Syntax error on line 165 of /etc/apache2/httpd.conf: Syntax error on line 13 of /etc/apache2/vhosts.d/00_default_ssl_vhost.conf: Syntax error on line 94 of /etc/apache2/vhosts.d/default_vhost.include: Cannot load /usr/lib64/apache2/modules/mod_ca.so into server: libssl.so.1.1: cannot open shared object file: No such file or directory
 * ERROR: apache2 failed to start


I've tried a re-emerge with full dependencies (empty tree) for Apache and OpenSSL. Can anyone offer some advice to troubleshoot or resolve? TIA
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54453
Location: 56N 3W

PostPosted: Mon Sep 11, 2023 3:26 pm    Post subject: Reply with quote

fincoop,

Code:
apache2: Syntax error on line 165 of /etc/apache2/httpd.conf


Fix the errors one at a time starting with the first reported error.
Subsequent errors can be the result of the first error.

That syntax error may be just before line 165. That's when it was detected,
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
fincoop
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 143

PostPosted: Mon Sep 11, 2023 4:01 pm    Post subject: Reply with quote

NeddySeagoon wrote:
fincoop,

Code:
apache2: Syntax error on line 165 of /etc/apache2/httpd.conf


Fix the errors one at a time starting with the first reported error.
Subsequent errors can be the result of the first error.

That syntax error may be just before line 165. That's when it was detected,


Thanks for the suggestion. I have followed the trail already. It’s the same error. It says I can’t find libssl, but you wanted me to load mod_ca, and that load was in an include file, and the include file was in a conf file.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21918

PostPosted: Mon Sep 11, 2023 4:04 pm    Post subject: Reply with quote

The output says mod_ca depends on OpenSSL 1.1.x. Was this module rebuilt after migrating to OpenSSL 3?
Back to top
View user's profile Send private message
fincoop
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 143

PostPosted: Mon Sep 11, 2023 4:27 pm    Post subject: Reply with quote

Hu wrote:
The output says mod_ca depends on OpenSSL 1.1.x. Was this module rebuilt after migrating to OpenSSL 3?


I am not sure if it was rebuilt. I did an empty tree build of Apache and verified that the ssl use flag is set. Is there another procedure to compile this module ?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1744

PostPosted: Mon Sep 11, 2023 4:40 pm    Post subject: Reply with quote

fincoop wrote:
Hu wrote:
The output says mod_ca depends on OpenSSL 1.1.x. Was this module rebuilt after migrating to OpenSSL 3?


I am not sure if it was rebuilt. I did an empty tree build of Apache and verified that the ssl use flag is set. Is there another procedure to compile this module ?

mod_ca is not a part of apache or anywhere I can find in Gentoo. It is not listed on Apache's site either. The only reference I can find is part of something called "Redwax server"
Back to top
View user's profile Send private message
fincoop
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 143

PostPosted: Mon Sep 11, 2023 5:00 pm    Post subject: Reply with quote

grknight wrote:
fincoop wrote:
Hu wrote:
The output says mod_ca depends on OpenSSL 1.1.x. Was this module rebuilt after migrating to OpenSSL 3?


I am not sure if it was rebuilt. I did an empty tree build of Apache and verified that the ssl use flag is set. Is there another procedure to compile this module ?

mod_ca is not a part of apache or anywhere I can find in Gentoo. It is not listed on Apache's site either. The only reference I can find is part of something called "Redwax server"


Thanks for checking that!

I unmerged apache, and inside of the modules directory only these files remained:
Code:
-rwxr-xr-x 1 root root  52K Apr 18  2022 mod_ca_crl.so*
-rwxr-xr-x 1 root root  98K Apr 18  2022 mod_ca_disk.so*
-rwxr-xr-x 1 root root  91K Apr 18  2022 mod_ca_engine.so*
-rwxr-xr-x 1 root root  95K Apr 18  2022 mod_ca_ldap.so*
-rwxr-xr-x 1 root root  97K Apr 18  2022 mod_ca_simple.so*
-rwxr-xr-x 1 root root  52K Apr 18  2022 mod_ca.so*
-rwxr-xr-x 1 root root  88K Apr 18  2022 mod_csr.so*
lrwxrwxrwx 1 root root   31 Jun 24  2022 mod_php.so -> ../../php8.1/apache2/libphp8.so
-rwxr-xr-x 1 root root 169K Apr 18  2022 mod_scep.so*


Maybe I added them at some point as part of a project I was doing and forgot. I'll just clean them out and carry on :) Documenting here in case anyone looks up this issue in the future.

Cheers!
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1744

PostPosted: Mon Sep 11, 2023 5:15 pm    Post subject: Reply with quote

fincoop wrote:
I unmerged apache, and inside of the modules directory only these files remained

It is a bit extreme to nuke a package to check files. Next time just try qfile -o /usr/lib64/apache2/modules/mod_* for example (this lists files not installed by emerge).
Back to top
View user's profile Send private message
fincoop
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 143

PostPosted: Tue Sep 12, 2023 4:07 am    Post subject: Reply with quote

grknight wrote:
fincoop wrote:
I unmerged apache, and inside of the modules directory only these files remained

It is a bit extreme to nuke a package to check files. Next time just try qfile -o /usr/lib64/apache2/modules/mod_* for example (this lists files not installed by emerge).

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum