[Bug 195790] New: www/mod_perl2: Leave httpd.conf unmolested when installing / uninstalling / upgrading mod_perl2

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Dec 7 23:57:28 UTC 2014


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 at FreeBSD.org
          Reporter: terry at tmk.com
          Assignee: apache at FreeBSD.org
             Flags: maintainer-feedback?(apache at 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 at FreeBSD.org> ---
Auto-assigned to maintainer apache at FreeBSD.org

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


More information about the freebsd-ports-bugs mailing list