[gobolinux-users] Placement of httpd modules

Hisham Muhammad hisham.hm at gmail.com
Tue Sep 12 19:40:49 UTC 2006


On 9/12/06, Jonas Karlsson <jonka750 at student.liu.se> wrote:
> On Tue, 12 Sep 2006 16:11:43 +0200, MJ Ray <mjr at phonecoop.coop> wrote:
>
> > "Jonas Karlsson" <jonka750 at student.liu.se> wrote: [...]
> >> One of the former solutions, either one, is better, but which one
> >> should be used?
> >
> > I'd prefer putting them under /System/Links/Libraries (share seems
> > wrong, as they are binaries) and the default apache being configured to
> > look there in its modules path.
>
> Yes, I'd prefer that as well, when I think about it. I didn't like the
> share solution, but that was the only way I could think of for the modules
> to be reachable for httpd, without too long pathname (as
> /Programs/Foo/X.Y/share is a symlink to /System/Links/Shared).
>
> Unfortunately I can't find a way to relocate where httpd looks for
> loadable modules. So I guess there has to be a long path in httpd.conf
> instead (anyone knows if one could use variables instead in httpd.conf?).

Is it very problematic to use the full pathname in httpd.conf? (I
figure the Current symlink would alleviate the upgrade scenario). I
never set up an Apache server, so I know zero about its configuration.

> > Alternatively, debian systems has a program called something like
> > a2enmod to symlink an apache module into the correct folder and all
> > modules from that folder are loaded.  There's a similar program and
> > folder for config sections.
> >
> The modules are always to be placed in /Programs/HTTPD/Current/odules, by
> default, and one could use unmanaged to symlink/copy the module there,
> even though unmanaged shouldn't be used to place files inside the
> /Programs structure (why?).

To keep valid the invariant that every /Programs entry contains files
only from a single program. Spreading files from different apps around
the /Programs tree would be the beginning of the Unix mess again
(symlinks diminish the problem, of course), but most importantly would
make stuff like CreatePackage less clean. So, essentially, I think it
goes against the overall design of the tree.

> The problem is that, with that approach, one
> has to symlink mod_php and similar everytime one recompiles httpd.

True. Spreading inter-programs links around /Programs makes management
more complicated. We used to do it very early on, with the "mirror"
(later called MirrorTree script).

-- Hisham
(ot: there's "nothing wrong" with qwerty, unless you're used to dvorak :( )


More information about the gobolinux-users mailing list