Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] apache-2.4.20 update doesn't like includes directive
Date: Sat, 21 May 2016 15:11:47
Message-Id: 1498117.VsogsRNVAs@dell_xps
1 I've updated apache to 2.4.20 and it now refuses to accept the httpd.conf. In
2 particular it says:
3 ===================
4 # /etc/init.d/apache2 restart
5 * Caching service dependencies ...
6 [ ok ]
7 * apache2 has detected an error in your setup:
8 apache2: Syntax error on line 153 of /etc/apache2/httpd.conf: Syntax error on
9 line 7 of /etc/apache2/modules.d/70_mod_php.conf: Syntax error on line 2 of
10 /var/lib/eselect-php/mod_php.conf: Cannot load modules/mod_php.so into server:
11 /usr/lib/apache2/modules/mod_php.so: undefined symbol: unixd_config
12 * ERROR: apache2 failed to stop
13 ================================
14
15
16 Taking these one at a time:
17
18 Syntax error on line 153 of /etc/apache2/httpd.conf
19 ===================================================
20 Line 153 of my /etc/apache2/httpd.conf has:
21
22 Include /etc/apache2/modules.d/*.conf
23
24 Should this be any different?
25
26 The /etc/apache2/modules.d/ directory contains:
27
28 # ls -la /etc/apache2/modules.d/
29 total 112
30 drwxr-xr-x 2 root root 4096 May 21 14:36 .
31 drwxr-xr-x 5 root root 4096 May 21 14:36 ..
32 -rw-r--r-- 1 root root 0 May 21 13:30 .keep_www-servers_apache-2
33 -rw-r--r-- 1 root root 5984 May 21 14:21 00_default_settings.conf
34 -rw-r--r-- 1 root root 2520 May 21 13:30 00_error_documents.conf
35 -rw-r--r-- 1 root root 5040 May 21 13:30 00_languages.conf
36 -rw-r--r-- 1 root root 2883 May 21 13:30 00_mod_autoindex.conf
37 -rw-r--r-- 1 root root 225 May 21 13:30 00_mod_info.conf
38 -rw-r--r-- 1 root root 1518 May 21 13:30 00_mod_log_config.conf
39 -rw-r--r-- 1 root root 1707 May 21 13:30 00_mod_mime.conf
40 -rw-r--r-- 1 root root 458 May 21 13:30 00_mod_status.conf
41 -rw-r--r-- 1 root root 1015 May 21 13:30 00_mod_userdir.conf
42 -rw-r--r-- 1 root root 2959 May 21 13:30 00_mpm.conf
43 -rw-r--r-- 1 root root 5574 Feb 23 18:11 01_wordpress2_module_settings.conf
44 -rw-r--r-- 1 root root 206 May 21 13:30 10_mod_mem_cache.conf
45 -rw-r--r-- 1 root root 2651 May 21 13:30 40_mod_ssl.conf
46 -rw-r--r-- 1 root root 185 May 21 13:30 41_mod_http2.conf
47 -rw-r--r-- 1 root root 758 May 21 13:30 45_mod_dav.conf
48 -rw-r--r-- 1 root root 406 May 21 13:30 46_mod_ldap.conf
49 -rw-r--r-- 1 root root 809 Mar 25 11:47 70_mod_php.conf
50
51
52 My /etc/conf.d/apache2 contains:
53
54 APACHE2_OPTS="-D DEFAULT_VHOST -D DAV -D DAV_FS -D INFO -D SSL -D
55 SSL_DEFAULT_VHOST -D LANGUAGE -D PHP"
56
57 I am not clear what is causing the above complain.
58
59
60 Syntax error on line 7 of /etc/apache2/modules.d/70_mod_php.conf:
61 =================================================================
62 line 7 of /etc/apache2/modules.d/70_mod_php.conf points to:
63
64 Include "/var/lib/eselect-php/mod_php.conf"
65
66 which in turn contains:
67
68 <IfModule !php5_module>
69 LoadModule php5_module modules/mod_php.so
70 </IfModule>
71
72 should the 2nd line above be any different and if so why hasn't the php
73 package changed it?
74
75
76 I am using php-5.6
77
78 # eselect php show apache2
79 php5.6
80
81
82 Here are my apache flags:
83 [ebuild R ] www-servers/apache-2.4.20:2::gentoo USE="ldap ssl -debug -
84 doc (-libressl) (-selinux) -static -suexec -threads" APACHE2_MODULES="actions
85 alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file
86 authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user
87 autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires
88 ext_filter file_cache filter headers include info log_config logio mime
89 mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id
90 unixd userdir usertrack vhost_alias -access_compat -asis -auth_digest -
91 authn_dbd -authz_dbd -cache_disk -cern_meta -charset_lite -dbd -dumpio -http2
92 -ident -imagemap -lbmethod_bybusyness -lbmethod_byrequests -lbmethod_bytraffic
93 -lbmethod_heartbeat -log_forensic -macro -proxy -proxy_ajp -proxy_balancer -
94 proxy_connect -proxy_fcgi -proxy_ftp -proxy_html -proxy_http -proxy_scgi -
95 proxy_wstunnel -ratelimit -remoteip -reqtimeout -slotmem_shm -substitute -
96 version" APACHE2_MPMS="-event -peruser -prefork -worker" 0 KiB
97
98 --
99 Regards,
100 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies