Wind River Support Network

HomeDefectsLIN1018-8349
Fixed

LIN1018-8349 : apache2: failed to start service

Created: Oct 28, 2021    Updated: Jan 19, 2022
Resolved Date: Nov 24, 2021
Found In Version: 10.18.44.24
Severity: Standard
Applicable for: Wind River Linux LTS 18
Component/s: Userspace

Description

Failed to start apache2 service with the following error:

● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2021-10-28 09:22:42 UTC; 14min ago
Process: 2342 ExecStart=/usr/sbin/httpd -DFOREGROUND -D SSL -D PHP5 -k start (code=exited, status=1/FAILURE)
Main PID: 2342 (code=exited, status=1/FAILURE)

Oct 28 09:22:42 intel-x86-64 systemd[1]: Started The Apache HTTP Server.
Oct 28 09:22:42 intel-x86-64 httpd[2342]: [Thu Oct 28 09:22:42.575868 2021] [php7:crit] [pid 2342:tid 140047412805888] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
Oct 28 09:22:42 intel-x86-64 httpd[2342]: AH00013: Pre-configuration failed
Oct 28 09:22:42 intel-x86-64 systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE
Oct 28 09:22:42 intel-x86-64 systemd[1]: apache2.service: Failed with result 'exit-code'.

Steps to Reproduce

1. setup.sh --machines=intel-x86-64 --machine intel-x86-64 --templates feature/LAMP feature/cut feature/docker feature/gcc-sanitizers feature/gdb feature/ids-basic feature/ipmi feature/ipv6 feature/krb5 feature/lttng feature/mariadb feature/nfsd feature/ntp feature/package-management feature/software-entropy feature/syslog-ng feature/system-stats feature/target-toolchain feature/tcpslice feature/test feature/xfce --dl-layers --layers meta-filesystems meta-virtualization meta-xfce --distro wrlinux-cgl --accept-eula=yes --dl-layers

source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env build

bitbake wrlinux-image-glibc-cgl

2. Boot on the target and start apache2 service:
Live chat
Online