View previous topic :: View next topic |
Author |
Message |
fincoop Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Feb 2004 Posts: 143
|
Posted: Mon Sep 11, 2023 3:15 pm Post subject: Apache2 won't start - Can't load mod_ca, libssl missing |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54453 Location: 56N 3W
|
Posted: Mon Sep 11, 2023 3:26 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fincoop Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Feb 2004 Posts: 143
|
Posted: Mon Sep 11, 2023 4:01 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 21918
|
Posted: Mon Sep 11, 2023 4:04 pm Post subject: |
|
|
The output says mod_ca depends on OpenSSL 1.1.x. Was this module rebuilt after migrating to OpenSSL 3? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fincoop Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Feb 2004 Posts: 143
|
Posted: Mon Sep 11, 2023 4:27 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
grknight Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 20 Feb 2015 Posts: 1744
|
Posted: Mon Sep 11, 2023 4:40 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fincoop Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Feb 2004 Posts: 143
|
Posted: Mon Sep 11, 2023 5:00 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
grknight Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 20 Feb 2015 Posts: 1744
|
Posted: Mon Sep 11, 2023 5:15 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fincoop Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Feb 2004 Posts: 143
|
Posted: Tue Sep 12, 2023 4:07 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|