Hi,
I have two loadable modules: xdata and slimzulu
With them enabled, Apache won't start with a reboot of Ubutu server.
After reboot of Ubuntu, If I execute: sudo service apache2 status
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Tue 2020-08-11 09:55:40 SAST; 1min 2
Docs: man:systemd-sysv-generator(8)
Process: 1234 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILU
Aug 11 09:55:40 ubuntu apache2[1234]: *
Aug 11 09:55:40 ubuntu apache2[1234]: * The apache2 configtest failed.
Aug 11 09:55:40 ubuntu apache2[1234]: Output of config test was:
Aug 11 09:55:40 ubuntu apache2[1234]: apache2: Syntax error on line 140 of /etc/
Aug 11 09:55:40 ubuntu apache2[1234]: Action 'configtest' failed.
Aug 11 09:55:40 ubuntu apache2[1234]: The Apache error log may have more informa
Aug 11 09:55:40 ubuntu systemd[1]: apache2.service: Control process exited, code
Aug 11 09:55:40 ubuntu systemd[1]: Failed to start LSB: Apache2 web server.
Aug 11 09:55:40 ubuntu systemd[1]: apache2.service: Unit entered failed state.
Aug 11 09:55:40 ubuntu systemd[1]: apache2.service: Failed with result 'exit-cod
lines 1-18/18 (END)
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Tue 2020-08-11 09:55:40 SAST; 1min 20s ago
Docs: man:systemd-sysv-generator(8)
Process: 1234 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
Aug 11 09:55:40 ubuntu apache2[1234]: *
Aug 11 09:55:40 ubuntu apache2[1234]: * The apache2 configtest failed.
Aug 11 09:55:40 ubuntu apache2[1234]: Output of config test was:
Aug 11 09:55:40 ubuntu apache2[1234]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/slimzulu.load: API module structure 'slimzulu_module' in file /home/nols/PAServer/scratch-dir/Ansie-ubuntu/mod_slimzulu/libmod_slimzulu.so is garbled - expected signature 41503234 but saw 00000000 - perhaps this is not an Apache module DSO, or was compiled for a different Apache version?
Aug 11 09:55:40 ubuntu apache2[1234]: Action 'configtest' failed.
Aug 11 09:55:40 ubuntu apache2[1234]: The Apache error log may have more information.
Aug 11 09:55:40 ubuntu systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 11 09:55:40 ubuntu systemd[1]: Failed to start LSB: Apache2 web server.
Aug 11 09:55:40 ubuntu systemd[1]: apache2.service: Unit entered failed state.
Aug 11 09:55:40 ubuntu systemd[1]: apache2.service: Failed with result 'exit-code'.
when I then execute: sudo service apache2 start
and then sudo service apache2 status
nols@ubuntu:~$ sudo service apache2 status
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Tue 2020-08-11 10:37:58 SAST; 1min 48s ago
Docs: man:systemd-sysv-generator(8)
Process: 1785 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
Tasks: 55
Memory: 38.7M
CPU: 1.040s
CGroup: /system.slice/apache2.service
├─1821 /usr/sbin/apache2 -k start
├─1822 /usr/sbin/apache2 -k start
└─1823 /usr/sbin/apache2 -k start
Aug 11 10:37:55 ubuntu systemd[1]: Starting LSB: Apache2 web server...
Aug 11 10:37:55 ubuntu apache2[1785]: * Starting Apache httpd web server apache2
Aug 11 10:37:57 ubuntu apache2[1785]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 11 10:37:58 ubuntu apache2[1785]: *
Aug 11 10:37:58 ubuntu systemd[1]: Started LSB: Apache2 web server.
nols@ubuntu:~$
type or paste code here
If I disable the modules, Apache do load with Ubuntu startup.
The source code of one of the Apache modules is attached.
Regards
Nols SmitSlimzulu.zip (10.1 KB)