Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Dec 2014 23:57:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 195790] New: www/mod_perl2: Leave httpd.conf unmolested when installing / uninstalling / upgrading mod_perl2
Message-ID:  <bug-195790-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195790

            Bug ID: 195790
           Summary: www/mod_perl2: Leave httpd.conf unmolested when
                    installing / uninstalling / upgrading mod_perl2
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: apache@FreeBSD.org
          Reporter: terry@tmk.com
          Assignee: apache@FreeBSD.org
             Flags: maintainer-feedback?(apache@FreeBSD.org)

Created attachment 150327
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=150327&action=edit
Log showing the problem

When portupgrade installs a new version of this port, the "LoadModule
perl_module" in /usr/local/etc/apache*/httpd.conf is unconditionally replaced
with a commented-out version. This can causes subsequent reloads/restarts of
Apache to fail due to other Perl directives in the Apache configuration file,
or (worse) to reload/restart without warning but produce a broken server due to
the lack of mod_perl.

This is particularly tricky because "/usr/local/etc/rc.d/apache22 configtest"
will NOT detect the second of these conditions.

There is some partial handling of this issue in mod_perl2's pkg_plist, which
removes the LoadModule directive but then says "Don't forget to remove all
mod_perl2-related directives in your httpd.conf".

It would be better to leave httpd.conf alone and just tell the user to remove
the LoadModule and other mod_perl2 directives manually. Hopefully the
TestConfig* pieces of the package (upstream) that modify httpd.conf to insert
the LoadModule line will leave httpd.conf alone if the line is already present.
If not, we may need patches for that as well.

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer apache@FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195790-13>