Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 221155 - www-servers/apache-2.2.8: 16_mod_python.conf has misplaced </IfModule>
Summary: www-servers/apache-2.2.8: 16_mod_python.conf has misplaced </IfModule>
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-10 05:13 UTC by Martin Mokrejš
Modified: 2008-05-31 11:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
16_mod_python.conf.diff (16_mod_python.conf.diff,2.09 KB, text/plain)
2008-05-31 11:19 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2008-05-10 05:13:45 UTC
On x86 stable I upgraded apache-2.2.8 and etc-update broke my working config:

File: /etc/apache2/modules.d/._cfg0000_16_mod_python.conf
1) Replace original with update
2) Delete update, keeping original as is
3) Interactively merge original with update
4) Show differences again
Please select from the menu above (-1 to ignore this update): 3
/etc/apache2/modules.d/._cfg0000_16_mod_python.conf /etc/apache2/modules.d/16_mod_python.conf /var/tmp/etc-update-9398//etc/apache2/modules.d/16_mod_python.conf.merged
Merging /etc/apache2/modules.d/._cfg0000_16_mod_python.conf and /etc/apache2/modules.d/16_mod_python.conf
  <IfModule !mod_python.c>                                    | LoadModule python_module modules/mod_python.so
    LoadModule python_module    modules/mod_python.so         <
  </IfModule>                                                 <
</IfDefine>                                                   <
%r
<IfModule mod_python.c>                                       <
#                                                             <
%r
#                                                             <
%r
#    <IfModule mod_mime.c>                                    | #       AddHandler python-program .spam
#    AddHandler python-program .spam                          | #       PythonHandler eggs
#    </IfModule>                                              <
#    PythonHandler eggs                                       <
%r
#    SetHandler python-program                                | #       SetHandler python-program
#    PythonPath "sys.path + ['/path/to']"                     | #       PythonPath "sys.path + ['/path/to']"
#    PythonHandler myhandler                                  | #       PythonHandler myhandler
%r
#    SetHandler python-program                                | #       SetHandler python-program
#    PythonHandler mod_python.publisher                       | #       PythonHandler mod_python.publisher
%r
                                                              > </IfDefine>
%r
# This works but cannot be moved into .htaccess               | # vim: ts=4 filetype=apache
<Directory /home/ires/public_html/IRES2>                      <
    AddHandler mod_python .php                                <
    # SetHandler mod_python                                   <
    PythonHandler mod_python.publisher                        <
    PythonDebug On                                            <
</Directory>                                                  <
                                                              <
<Directory /home/conference/public_html>                      <
    AddHandler mod_python .py                                 <
    # SetHandler mod_python                                   <
    PythonHandler mod_python.publisher                        <
    PythonDebug On                                            <
</Directory>                                                  <
                                                              <
</IfModule>                                                   <
%l
1) Replace /etc/apache2/modules.d/16_mod_python.conf with merged file
2) Show differences between merged file and original
3) Remerge original with update
4) Edit merged file
5) Return to the previous menu
Please select from the menu above (-1 to exit, losing this merge): 1
Replacing /etc/apache2/modules.d/16_mod_python.conf with /var/tmp/etc-update-9398//etc/apache2/modules.d/16_mod_python.conf.merged
mv: overwrite `/etc/apache2/modules.d/16_mod_python.conf'? y
rm: remove regular file `/etc/apache2/modules.d/._cfg0000_16_mod_python.conf'? y



# /etc/init.d/apache2 stop
 * Caching service dependencies ...                                                                                                 [ ok ]
 * Stopping apache2 ...
apache2: Syntax error on line 121 of /etc/apache2/httpd.conf: Syntax error on line 48 of /etc/apache2/modules.d/16_mod_python.conf: </IfModule> without matching <IfModule> section
#

It turned out there should be </IfDefine> at the very end instead of the </IfModule> and that there is one extra </IfDefine> at the middle of the file.
Please check your templates.
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2008-05-30 10:23:15 UTC
the file in portage is correct, maybe you did not update the config file correctly ...
Comment 2 Martin Mokrejš 2008-05-31 11:19:33 UTC
Created attachment 154931 [details]
16_mod_python.conf.diff

This show it is caused by the etc-update script.