Termux-packages: Apache2 HTTPS problem

Created on 8 Sep 2019  ยท  14Comments  ยท  Source: termux/termux-packages

Hello, I am trying to configure Apache2 to run through SSL. But when I try to enable the 'Include httpd-ssl.conf' in the main httpd.conf file and run it. It says:

AH00526: Syntax error on line 52 of /data/data/com.termux/files/usr/etc/apache2/extra/httpd-ssl.conf:
Invalid command 'SSLCipherSuite', perhaps misspelled or defined by a module not included in the server configuration

Can you tell me if I'm doing something wrong or if you need more info

bug report help wanted

All 14 comments

Uncomment the LoadModule line for ssl_module (and apparently, socache_shmcb_module) in httpd.conf.

It says: "Segmentation fault". I think the source of this is because of mod_ssl

Hmm, I am not getting segfault here (though I stopped at the point where it asks for a cert).

Post the output of termux-info, perhaps?

Updatable packages:
All packages up to date
Subscribed repositories:
https://dl.bintray.com/xeffyr/x11-packages-21 x11/main
https://dl.bintray.com/xeffyr/unstable-packages-21 unstable/main
https://dl.bintray.com/grimler/science-packages-21 science/stable
https://dl.bintray.com/grimler/termux-root-packages-21 root/stable
https://dl.bintray.com/grimler/game-packages-21 games/stable
https://termux.net stable/main
https://termux.net stable/main
System information:
Linux localhost 3.10.72 #1 SMP PREEMPT Tue Feb 16 18:23:49 CST 2016 armv7l Android
Termux-packages arch:
arm
Android version:
5.1
Device manufacturer:
Lenovo
Device model:
Lenovo TB3-710I

Also, I am certain that the source of segfault is due to mod_ssl. When I remove it, the command works perfectly fine.

Probably an android-5 and/or arm issue. httpd starts fine here (master / aarch64) after I provide it with a cert and a key. @xeffyr?

I just set up an android-5/arm prefix on my aarch64 Android 8.0 device and cannot reproduce the problem. Perhaps it has something to do with your ROM/device specifically. We might need you to debug apache on it to get some hint on what exactly the problem is.

What is the gdb command again?

Here is the gdb output:

Starting program: /data/data/com.termux/files/usr/bin/httpd
warning: .dynamic section for "/system/lib/libexpat.so" is not at the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/system/lib/libpcre.so" is not at the expected address (wrong library or version mismatch?)
warning: Could not load shared library symbols for mod_mpm_worker.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_authn_file.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_authn_core.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_authz_host.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_authz_groupfile.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_authz_user.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_authz_core.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_access_compat.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_auth_basic.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_socache_shmcb.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_reqtimeout.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_include.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_filter.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_mime.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_log_config.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_env.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_headers.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_setenvif.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_version.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_slotmem_shm.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_ssl.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_unixd.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_status.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_autoindex.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_negotiation.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_dir.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_userdir.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for mod_alias.so.
Do you need "set solib-search-path" or "set sysroot"?

Program received signal SIGSEGV, Segmentation fault.
0xb6cbb4a4 in ?? ()

Here is the gdb output:

That output is not interesting. You need to try obtain backtrace.
Execute something like

gdb /data/data/com.termux/files/usr/bin/httpd
run
bt

bt says 'No stack'

httpd: Syntax error on line 535 of /data/data/com.termux/files/usr/etc/apache2/httpd.conf: Include/IncludeOptional: No matches for the wildcard '*.conf' in '/data/data/com.termux/files/usr/etc/apache2/conf.d', failing when I run apache2 it show. โ“ how fix it?

@navnee123 Just comment this line.

@navnee123 Just comment this line.

Include etc/apache2/conf.d/*.conf
This is the line.
535

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jackbrycesmith picture jackbrycesmith  ยท  3Comments

am11 picture am11  ยท  3Comments

neitsab picture neitsab  ยท  3Comments

roalyr picture roalyr  ยท  3Comments

loveablefellow007 picture loveablefellow007  ยท  3Comments