Wind River Support Network

HomeDefectsLIN5-6431
Fixed

LIN5-6431 : apache2: failed to load module libphp5

Created: Mar 26, 2013    Updated: Dec 19, 2017
Resolved Date: Apr 16, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.3
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

root@qemu0:~# /etc/init.d/apache2 start
Starting web server: apache2[Tue Mar 26 13:48:38.828482 2013] [so:warn] [pid 1648] AH01574: module reqtimeout_module is already loaded, skipping
[Tue Mar 26 13:48:38.833943 2013] [so:warn] [pid 1648] AH01574: module filter_module is already loaded, skipping
httpd: Syntax error on line 501 of /etc/apache2/httpd.conf: Syntax error on line 5 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load /lib64/apache2/modules/libphp5.so into server: /lib64/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
root@qemu0:~#

Workaround

edit the export/dist/etc/apache2/modules.d/70_mod_php5.conf with:

-               LoadModule php5_module    lib64/apache2/modules/libphp5.so
+               LoadModule php5_module    usr/lib64/apache2/modules/libphp5.so

Steps to Reproduce

1. configure with LAMP:
$ /git/wrlinux0727/wrlinux/configure --enable-board=qemux86-64 --enable-rootfs=glibc-std --enable-kernel=standard --enable-jobs=4 --enable-parallel-pkgbuilds=4 --enable-patchresolve=noop --with-template=feature/LAMP

2. $ make fs

3. start-target:
$ sudo make start-target TOPTS="-t -in 1"

4. on the target:
# /etc/init.d/apache2 start

Other Downloads


Live chat
Online